/* Authentication Page Specific Styles - Using CSS Variables from branding-variables.css */

/* Auth-specific color overrides */
:root {
    --primary-teal: #0f766e;
    --light-teal: #14b8a6;
    --accent-green: #A6E17F;
    --dark-bg: #0f172a;
    --text-primary: #1a1a1a;
    --text-secondary: rgba(26, 26, 26, 0.8);
    --text-muted: rgba(26, 26, 26, 0.6);
    --border-color: rgba(26, 26, 26, 0.3);
    --error-color: #dc2626;
    --error-bg: rgba(239, 68, 68, 0.1);
    --error-border: rgba(239, 68, 68, 0.3);
}

/* Base Authentication Layout */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(ellipse at center, #3fd6e1a6 12%, #4fa6ad 57%, #181818 90%) !important;
}

.auth-card {
    border-radius: 20px;
    box-shadow: 0px -5px 19px 20px rgba(173, 231, 235, 0.55);
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    position: relative;
    background: none;
}

.auth-card-content {
    padding: 1rem 2.5rem;
    color: var(--text-primary);
}

/* Logo Section */
.auth-logo-section {
    text-align: center;
    /* margin-bottom: 2rem; */
}

.auth-logo-image {
    width: 200px;
    height: 150px;
    display: block;
    margin: 0 auto;
}

/* Typography */
.auth-welcome-text {
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-welcome-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.auth-prompt-text {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Form Elements */
.auth-form-group {
    margin-bottom: 0.5rem;
}

.required-field {
    color: var(--error-color);
    font-weight: 700;
}

.auth-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.auth-form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.auth-form-input::placeholder {
    color: var(--text-muted);
}

.auth-form-input.error {
    border: 1px solid var(--error-border);
    background: var(--error-bg);
}

/* Password Input Group */
.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-group .auth-form-input {
    padding-right: 3rem;
}

.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

.password-toggle-btn:focus {
    outline: none;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.1);
}

/* Buttons */
.auth-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.auth-btn-primary {
    background: var(--text-primary);
    color: white;
    margin-bottom: 1rem;
}

.auth-btn-primary:hover {
    background: var(--text-secondary);
    transform: translateY(-2px);
}

.auth-btn-google {
    background: var(--text-primary);
    color: white;
}

.auth-btn-google:hover {
    background: var(--text-secondary);
    transform: translateY(-2px);
}

.auth-google-icon {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-primary);
    font-weight: bold;
}

/* Form Utilities */
.auth-checkbox-group {
    margin-bottom: 1rem;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-checkbox-input {
    margin-right: 0.5rem;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 1rem;
}

/* Legal Text */
.auth-legal-text {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: 1.5rem;
}

.auth-legal-text a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
}

.auth-legal-text a:hover {
    text-decoration: underline;
}

/* Error Messages */
.auth-error-message {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* Success Messages */
.auth-success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #059669;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-align: center;
}

/* Additional Links */
.auth-additional-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--text-primary);
}

/* Left Section (Desktop) */
.auth-left-section {
    display: none;
    color: white;
    text-align: left;
}

.auth-left-section h1 {
    color: #F5F3E7;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    margin-left: 4rem;
}

.auth-highlight {
    color: var(--accent-green);
}

.auth-left-section p {
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Responsive Design */
@media (min-width: 1024px) {
    .auth-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
        margin: 0 auto;
    }

    .auth-left-section {
        display: block;
    }
}

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

    .auth-card-content {
        padding: 2rem 1.5rem;
    }

    .auth-logo-image {
        width: 250px;
        height: 200px;
    }
}
