﻿/* Authentication Pages Styles */

/* Hide navigation and footer for auth pages - updated selectors for modern layout */
body.auth-page:not(.non-auth) header,
body.auth-page:not(.non-auth) nav,
body.auth-page:not(.non-auth) footer,
body.auth-page:not(.non-auth) .modern-footer {
    display: none !important;
}

/* Make container full height and centered for auth pages - updated for modern layout */
body.auth-page:not(.non-auth) .modern-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body.auth-page:not(.non-auth) .modern-main {
    display: contents;
}

/* Legacy container support for older layouts */
body.auth-page:not(.non-auth) .container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Ensure normal layout for non-auth pages even if auth-page class persists temporarily */
body:not(.auth-page) .container,
body.non-auth .container,
body:not(.auth-page) .modern-container,
body.non-auth .modern-container {
    height: auto !important;
    display: block !important;
    align-items: normal !important;
    justify-content: normal !important;
}

body:not(.auth-page) .modern-main,
body.non-auth .modern-main {
    display: block !important;
}

/* Auth card styling - Made bigger */
.auth-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 50px; /* Increased from 40px */
    width: 100%;
    max-width: 480px; /* Increased from 400px */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Header with brand links */
.auth-brand {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 35px; /* Increased from 30px */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .auth-brand a {
        color: var(--text-secondary);
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .auth-brand a:hover {
            color: var(--accent-blue);
        }

/* Main title */
.auth-title {
    color: var(--text-primary);
    font-size: 36px; /* Increased from 32px */
    font-weight: 700;
    margin-bottom: 12px; /* Increased from 8px */
    text-align: center;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtitle */
.auth-subtitle {
    color: var(--text-secondary);
    font-size: 17px; /* Increased from 16px */
    text-align: center;
    margin-bottom: 35px; /* Increased from 30px */
}

/* Form styling */
.auth-card .form-group {
    margin-bottom: 24px; /* Increased from 20px */
}

.form-label-custom {
    color: var(--text-primary);
    font-size: 15px; /* Increased from 14px */
    font-weight: 500;
    margin-bottom: 10px; /* Increased from 8px */
    display: block;
}

.form-control-custom {
    width: 100%;
    padding: 18px; /* Increased from 16px */
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

    .form-control-custom:focus {
        outline: none;
        border-color: var(--accent-blue);
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    }

    .form-control-custom::placeholder {
        color: var(--text-secondary);
    }

/* Remember me and forgot password row */
.checkbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px; /* Increased from 30px */
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: var(--accent-blue);
}

.checkbox-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.forgot-password {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

    .forgot-password:hover {
        color: var(--accent-purple);
    }

/* Submit button */
.btn-auth {
    width: 100%;
    padding: 18px; /* Increased from 16px */
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 17px; /* Increased from 16px */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    margin-bottom: 35px; /* Increased from 30px */
}

    .btn-auth:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    }

    .btn-auth:active {
        transform: translateY(0);
    }

/* Divider */
.auth-divider {
    text-align: center;
    margin: 35px 0; /* Increased from 30px */
    color: var(--text-secondary);
    font-size: 14px;
    position: relative;
}

    .auth-divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: var(--border-color);
        z-index: 1;
    }

    .auth-divider span {
        background: var(--card-bg);
        padding: 0 20px;
        position: relative;
        z-index: 2;
    }

/* Register link */
.register-link {
    text-align: center;
}

.register-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

    .register-text a {
        color: var(--accent-blue);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .register-text a:hover {
            color: var(--accent-purple);
        }

/* Alert styling for auth pages */
/*.alert-custom {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success-custom {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success-color);
}

.alert-danger-custom {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error-color);
}*/

/* Validation errors for auth pages */
.validation-error {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.validation-summary {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
}

    .validation-summary ul {
        margin: 0;
        padding-left: 20px;
        color: var(--error-color);
    }

/* Responsive design for auth pages */
@media (max-width: 480px) {
    .auth-card {
        padding: 35px 25px; /* Increased from 30px 20px */
        margin: 10px;
        max-width: 90%; /* Added to ensure it fits on smaller screens */
    }

    .auth-title {
        font-size: 30px; /* Increased from 28px */
    }

    .checkbox-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .forgot-password {
        align-self: flex-end;
    }
}

@media (max-width: 320px) {
    .auth-card {
        padding: 25px 20px; /* Increased from 20px 15px */
        margin: 5px;
    }

    .auth-title {
        font-size: 26px; /* Increased from 24px */
    }

    .form-control-custom {
        padding: 16px; /* Increased from 14px */
        font-size: 15px; /* Increased from 14px */
    }

    .btn-auth {
        padding: 16px; /* Increased from 14px */
        font-size: 15px; /* Increased from 14px */
    }
}
