/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Figtree", sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Auth container */
.auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #f97316 100%);
    display: flex;
    flex-direction: column;
}

/* Header */
.auth-header {
    background-color: #374151;
    color: white;
    padding: 0.75rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.contact-info {
    display: flex;
    gap: 1rem;
}

.contact-info i {
    margin-right: 0.25rem;
}

.header-nav {
    display: flex;
    gap: 1rem;
}

.header-nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.header-nav a:hover {
    color: #fbbf24;
}

/* Main navigation */
.main-nav {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #374151;
}

.logo-circle {
    width: 3rem;
    height: 3rem;
    background-color: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.logo-circle span {
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
}

/* Auth main content */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.auth-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    width: 100%;
    max-width: 28rem;
}

.auth-header-content {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 4rem;
    height: 4rem;
    background-color: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.auth-logo span {
    color: white;
    font-weight: bold;
    font-size: 2rem;
}

.auth-header-content h1 {
    font-size: 1.875rem;
    font-weight: bold;
    color: #374151;
    margin-bottom: 0.5rem;
}

.auth-header-content p {
    color: #6b7280;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Form styles */
.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-weight: 500;
    color: #374151;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 0.75rem;
    color: #9ca3af;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.input-group input.error {
    border-color: #ef4444;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    z-index: 1;
}

.password-toggle:hover {
    color: #6b7280;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Form options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #dc2626;
}

.forgot-link {
    color: #dc2626;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.forgot-link:hover {
    color: #b91c1c;
}

/* Form checkboxes */
.form-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-checkboxes .checkbox-label {
    align-items: flex-start;
    line-height: 1.5;
}

.form-checkboxes a {
    color: #dc2626;
    text-decoration: none;
    font-weight: 500;
}

.form-checkboxes a:hover {
    color: #b91c1c;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background-color: #dc2626;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #b91c1c;
}

.btn-primary:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* Auth switch */
.auth-switch {
    text-align: center;
    color: #6b7280;
}

.auth-switch a {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    color: #b91c1c;
}

/* Footer */
.auth-footer {
    background-color: #374151;
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: auto;
}

.auth-footer p {
    font-size: 0.875rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }

    .header-nav {
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-options {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .auth-card {
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-main {
        padding: 1rem;
    }

    .auth-card {
        padding: 1rem;
    }

    .header-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}
