/* Auth Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
      font-family: 'Poppins', sans-serif;
}

body {
  
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    z-index: 1;
}

.register-card {
    max-width: 500px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.auth-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #6c757d;
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.input-group input:focus {
    outline: none;
    border-color: #27ae60;
    background: white;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

#metho{
    position: absolute;
  left: 93%;

}

.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 0.8rem;
    color: #6c757d;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #2c3e50;
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-container input:checked + .checkmark {
    background: #27ae60;
    border-color: #27ae60;
}

.checkbox-container input:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 0.7rem;
}

.forgot-link {
    color: #27ae60;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #219a52;
    text-decoration: underline;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 48px;
}

.btn-primary {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #219a52, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-google {
    background: white;
    color: #2c3e50;
    border: 2px solid #e9ecef;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.btn-google i {
    color: #ea4335;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: #6c757d;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f3f4;
}

.auth-footer p {
    color: #6c757d;
    font-size: 0.9rem;
}

.auth-footer a {
    color: #27ae60;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #219a52;
    text-decoration: underline;
}

/* Background Shapes */
.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #27ae60;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

/* Password Strength Indicators */
.strength-weak .strength-fill {
    width: 33%;
    background: #e74c3c;
}

.strength-medium .strength-fill {
    width: 66%;
    background: #f39c12;
}

.strength-strong .strength-fill {
    width: 100%;
    background: #27ae60;
}

.strength-weak .strength-text {
    color: #e74c3c;
}

.strength-medium .strength-text {
    color: #f39c12;
}

.strength-strong .strength-text {
    color: #27ae60;
}

/* Error States */
.form-group.error input {
    border-color: #e74c3c;
    background: #fdf2f2;
}

.form-group.error input:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.error-message i {
    font-size: 0.7rem;
}

/* Success States */
.form-group.success input {
    border-color: #27ae60;
    background: #f8fff8;
}

.success-message {
    color: #27ae60;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
    
    .logo h1 {
        font-size: 1.25rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .checkbox-container {
        font-size: 0.85rem;
    }
    
    .bg-shape {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem 1rem;
        margin: 0.5rem;
    }
    
    .auth-header {
        margin-bottom: 1.5rem;
    }
    
    .logo {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .auth-header h2 {
        font-size: 1.25rem;
    }
    
    .auth-header p {
        font-size: 0.9rem;
    }
    
    .input-group input {
        padding: 0.75rem 1rem 0.75rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .auth-card {
        border: 2px solid #000;
    }
    
    .input-group input {
        border-color: #000;
    }
    
    .btn-primary {
        background: #000;
        border: 2px solid #000;
    }
    
    .btn-google {
        border-color: #000;
        color: #000;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    .auth-card {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .logo h1,
    .auth-header h2,
    .form-group label,
    .checkbox-container {
        color: #e2e8f0;
    }
    
    .auth-header p,
    .auth-footer p {
        color: #a0aec0;
    }
    
    .input-group input {
        background: #4a5568;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .input-group input:focus {
        background: #2d3748;
        border-color: #27ae60;
    }
    
    .input-group i {
        color: #a0aec0;
    }
    
    .btn-google {
        background: #4a5568;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .btn-google:hover {
        background: #2d3748;
    }
    
    .auth-divider::before {
        background: #4a5568;
    }
    
    .auth-divider span {
        background: #2d3748;
        color: #a0aec0;
    }
    
    .auth-footer {
        border-top-color: #4a5568;
    }
    
    .checkmark {
        border-color: #4a5568;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .bg-shape {
        animation: none;
    }
    
    .spinner {
        animation: none;
        border: 4px solid #27ae60;
    }
}

/* Focus Styles for Accessibility */
.input-group input:focus,
.btn:focus,
.checkbox-container:focus-within,
.forgot-link:focus {
    outline: 2px solid #27ae60;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .auth-background,
    .loading-overlay {
        display: none !important;
    }
    
    .auth-card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .btn {
        border: 1px solid #000;
        background: transparent !important;
        color: #000 !important;
    }
}
