/* Shared Authentication Styles - Used by Login and Register pages */

/* Wrapper - Centers the auth container */
.auth-wrapper,
.login-wrapper,
.register-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f7fa;
    padding: 20px;
    width: 100%;
}

/* Main container for auth forms */
.auth-container,
.login-container,
.register-container {
    width: 100%;
    max-width: 1000px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Form wrapper - Two column layout */
.auth-form-wrapper,
.login-form-wrapper,
.register-form-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    min-height: 600px;
    width: 100%;
    margin: 0 !important;
}

.auth-form-wrapper > *,
.login-form-wrapper > *,
.register-form-wrapper > * {
    min-width: 0;
}

/* Form section */
.auth-form-section,
.login-form-section,
.register-form-section {
    padding: 50px 60px;
    display: flex;
    align-items: center;
    grid-column: 1;
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}

.auth-content,
.login-content,
.register-content {
    width: 100%;
}

/* Header section */
.auth-header,
.login-header,
.register-header {
    margin-bottom: 30px;
}

.auth-header h1,
.login-header h1,
.register-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.auth-header p,
.login-header p,
.register-header p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

/* Error message styling */
.error-message {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.error-list {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #dc2626;
    font-size: 14px;
}

.error-list li {
    margin: 4px 0;
}

/* Success message styling */
.success-message {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #15803d;
    font-size: 14px;
}

/* Form fields container */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Individual form field */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin: 0;
}

/* Input fields - GENERAL STYLING */
.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #0050FF;
    box-shadow: 0 0 0 3px rgba(0, 80, 255, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* Password input wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.password-toggle:hover {
    opacity: 1;
}

.password-toggle img {
    width: 20px;
    height: 20px;
}

/* Field error messages */
.field-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 4px;
}

/* Auth buttons (login/register) */
.auth-button,
.login-button,
.register-button {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background-color: #0050FF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.auth-button:hover:not(:disabled),
.login-button:hover:not(:disabled),
.register-button:hover:not(:disabled) {
    background-color: #0043d4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 80, 255, 0.3);
}

.auth-button:active:not(:disabled),
.login-button:active:not(:disabled),
.register-button:active:not(:disabled) {
    transform: translateY(0);
}

.auth-button:disabled,
.register-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Navigation links between pages */
.register-link,
.login-link {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #6b7280;
}

.register-link a,
.login-link a {
    color: #0050FF;
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover,
.login-link a:hover {
    text-decoration: underline;
}

/* Brand section */
.auth-brand-section,
.login-brand-section,
.register-brand-section {
    background: linear-gradient(135deg, #0050FF 0%, #0043d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    grid-column: 2;
    width: 100%;
    box-sizing: border-box;
}

.brand-content {
    text-align: center;
}

.brand-name {
    font-size: 56px;
    font-weight: 700;
    color: white;
    margin: 0 0 16px 0;
    letter-spacing: 2px;
}

.brand-tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
}

/* Tablet responsiveness (768px - 1024px) */
@media (max-width: 1024px) {
    .auth-form-section,
    .login-form-section,
    .register-form-section {
        padding: 40px 40px;
    }

    .auth-header h1,
    .login-header h1,
    .register-header h1 {
        font-size: 26px;
    }

    .brand-name {
        font-size: 48px;
    }
}

/* Mobile responsiveness (below 768px) */
@media (max-width: 768px) {
    .auth-wrapper,
    .login-wrapper,
    .register-wrapper {
        padding: 20px;
        background-color: #f5f7fa;
        align-items: flex-start;
        min-height: 100vh;
    }

    .auth-container,
    .login-container,
    .register-container {
        max-width: 100%;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .auth-form-wrapper,
    .login-form-wrapper,
    .register-form-wrapper {
        grid-template-columns: 1fr !important;
        min-height: auto;
    }

    .auth-brand-section,
    .login-brand-section,
    .register-brand-section {
        display: none;
    }

    .auth-form-section,
    .login-form-section,
    .register-form-section {
        padding: 40px 32px;
        grid-column: 1;
    }

    .auth-header,
    .login-header,
    .register-header {
        margin-bottom: 24px;
    }

    .auth-header h1,
    .login-header h1,
    .register-header h1 {
        font-size: 24px;
    }

    .auth-header p,
    .login-header p,
    .register-header p {
        font-size: 14px;
    }

    .form-fields {
        gap: 18px;
    }
}

/* Small mobile devices (below 480px) */
@media (max-width: 480px) {
    .auth-wrapper,
    .login-wrapper,
    .register-wrapper {
        padding: 16px;
    }

    .auth-container,
    .login-container,
    .register-container {
        margin-top: 20px;
        margin-bottom: 20px;
        border-radius: 10px;
    }

    .auth-form-section,
    .login-form-section,
    .register-form-section {
        padding: 32px 24px;
    }

    .auth-header,
    .login-header,
    .register-header {
        margin-bottom: 20px;
    }

    .auth-header h1,
    .login-header h1,
    .register-header h1 {
        font-size: 22px;
    }

    .auth-header p,
    .login-header p,
    .register-header p {
        font-size: 13px;
    }

    .form-fields {
        gap: 16px;
    }

    .form-input {
        padding: 12px 14px;
        font-size: 15px;
    }

    .auth-button,
    .login-button,
    .register-button {
        padding: 13px 20px;
        font-size: 15px;
    }

    .error-message,
    .success-message {
        padding: 10px 14px;
        font-size: 13px;
    }
}


