/* Ultra Modern Authentication Pages Styles */

/* Auth layout - heavy background animations removed for performance */
body {
    position: relative;
}

:root {
    /* StarCard Brand Colors - Turquoise Focus */
    --primary-color: #92C3CD;        /* Primary Turquoise/Blue */
    --primary-dark: #6BA3B0;        /* Darker Turquoise */
    --primary-darker: #4A8A9A;      /* Even Darker Turquoise */
    --primary-light: #B8D9E0;       /* Light Turquoise */
    --primary-lighter: #D4E8ED;     /* Very Light Turquoise */
    --primary-lightest: #E8F2F5;    /* Lightest Turquoise */
    --secondary-color: #6BA3B0;    /* Darker Turquoise as secondary */
    --secondary-dark: #4A8A9A;      /* Dark Turquoise */
    --secondary-light: #B8D9E0;    /* Light Turquoise */
    --accent-color: #FFD700;        /* Gold accent */
    --text-on-primary: #0f172a;     /* Dark text on light turquoise */
    --success-color: #10b981;       /* Green */
    --error-color: #ef4444;         /* Red */
    --warning-color: #f59e0b;       /* Orange */
    --text-primary: #0f172a;        /* Dark slate */
    --text-secondary: #64748b;      /* Slate gray */
    --text-light: #94a3b8;          /* Light slate */
    --border-color: #e2e8f0;        /* Light border */
    --bg-light: #f8fafc;            /* Very light background */
    --bg-white: #ffffff;            /* White */
    --bg-glass: rgba(255, 255, 255, 0.1);
    --bg-glass-strong: rgba(255, 255, 255, 0.25);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(146, 195, 205, 0.4);
    --shadow-glow-strong: 0 0 30px rgba(146, 195, 205, 0.5);
    /* StarCard Brand Gradients - Turquoise Focus */
    --gradient-primary: linear-gradient(135deg, #92C3CD 0%, #6BA3B0 100%);
    --gradient-light: linear-gradient(135deg, #B8D9E0 0%, #92C3CD 100%);
    --gradient-dark: linear-gradient(135deg, #6BA3B0 0%, #4A8A9A 50%, #92C3CD 100%);
    --gradient-modern: linear-gradient(135deg, #D4E8ED 0%, #92C3CD 50%, #6BA3B0 100%);
    --gradient-soft: linear-gradient(135deg, #E8F2F5 0%, #D4E8ED 50%, #B8D9E0 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: 
        linear-gradient(135deg, #ffffff 0%, #f8fafc 15%, #e8f2f5 30%, #d4e8ed 50%, #b8d9e0 70%, #92c3cd 100%);
    background-size: 100% 100%;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 28px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 40px rgba(146, 195, 205, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    overflow: hidden;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(146, 195, 205, 0.4);
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-container:hover {
    transform: translateY(-2px) perspective(1000px) rotateX(0.5deg);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 0 30px rgba(146, 195, 205, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.auth-container:hover .auth-header h1 {
    transform: translateY(-2px);
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 35px rgba(146, 195, 205, 0.35);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Input focus glow effect */
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 4px rgba(146, 195, 205, 0.2),
        0 4px 12px rgba(146, 195, 205, 0.25),
        0 0 25px rgba(146, 195, 205, 0.2);
    transform: translateY(-1px);
    background: rgba(232, 242, 245, 0.5);
}

/* Smooth transitions for all interactive elements */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced error message */
.form-group .error-message {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 8px;
    display: none;
    font-weight: 500;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.form-group.has-error .error-message {
    display: block;
}

.auth-header {
    background: var(--gradient-primary);
    padding: 40px 32px 48px;
    text-align: center;
    color: var(--text-on-primary);
    position: relative;
    overflow: hidden;
}

.back-to-home {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 16px;
    left: 20px;
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    z-index: 2;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    transition: color 0.2s, background 0.2s, transform 0.2s;
}
.back-to-home:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    transform: translateX(-2px);
}
.back-to-home:active {
    transform: translateX(-1px) scale(0.98);
}
.back-to-home-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.logo-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    height: 45px;
    width: auto;
    max-width: 220px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: logoFadeIn 0.8s ease-out;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.logo:hover {
    transform: scale(1.1) translateY(-3px) rotate(1deg);
    filter: drop-shadow(0 8px 20px rgba(146, 195, 205, 0.5));
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(184, 217, 224, 0.3) 0%, transparent 70%);
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    margin-top: 8px;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
    color: #ffffff;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(146, 195, 205, 0.4);
    animation: titleFadeIn 0.8s ease-out 0.2s both;
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header p {
    font-size: 15px;
    opacity: 0.9;
    font-weight: 400;
    position: relative;
    z-index: 1;
    color: var(--text-on-primary);
    animation: subtitleFadeIn 0.8s ease-out 0.4s both;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

/* Modern styling for LOYALTY CARDS REVOLUTION subtitle */
.auth-header p[data-i18n="signup_subtitle"],
.auth-header p[data-i18n="signin_subtitle"] {
    font-size: 18px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    color: #0a0a0a;
    text-transform: lowercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: subtitleFadeIn 0.8s ease-out 0.4s both;
    display: inline-block;
    margin-top: 8px;
    padding: 0 20px;
    position: relative;
    white-space: nowrap;
    line-height: 1.2;
}

.auth-header p[data-i18n="signup_subtitle"]::after,
.auth-header p[data-i18n="signin_subtitle"]::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(146, 195, 205, 0.5), transparent);
    border-radius: 2px;
}

@keyframes subtitleFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.auth-body {
    padding: 40px 30px;
}

.language-switcher {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    gap: 4px;
    background: rgba(146, 195, 205, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(146, 195, 205, 0.4);
    box-shadow: var(--shadow-md), 0 0 15px rgba(146, 195, 205, 0.2);
    z-index: 1000;
    transition: all 0.3s;
}

.language-switcher:hover {
    background: rgba(146, 195, 205, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(146, 195, 205, 0.3);
    border-color: rgba(146, 195, 205, 0.5);
}

.language-switcher button {
    background: transparent;
    border: none;
    color: var(--text-on-primary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.language-switcher button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: rgba(146, 195, 205, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

.language-switcher button:hover::before {
    opacity: 1;
}

.language-switcher button.active {
    background: rgba(107, 163, 176, 0.4);
    box-shadow: 0 2px 8px rgba(146, 195, 205, 0.3);
    color: var(--text-on-primary);
}

.language-switcher button.active::before {
    opacity: 0;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-darker);
    letter-spacing: 0.2px;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    border: 2px solid var(--primary-lighter);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-white);
    color: var(--text-primary);
    font-weight: 400;
}

.form-group input[type="date"] {
    padding: 14px 18px 14px 48px;
    position: relative;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 18px;
    cursor: pointer;
    opacity: 0.5;
    z-index: 2;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.form-group .input-icon {
    position: absolute;
    left: 16px;
    top: 42px;
    width: 20px;
    height: 20px;
    opacity: 0.5;
    transition: all 0.3s;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 42px;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0.5;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.password-toggle:hover {
    opacity: 1;
    color: var(--primary-color);
    transform: scale(1.1);
}

.password-toggle:focus {
    outline: none;
    opacity: 1;
    color: var(--primary-darker);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    transition: all 0.3s ease;
    position: absolute;
}

.password-toggle .eye,
.password-toggle .eye-off {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.password-toggle .eye-off {
    display: none;
}

.form-group input[type="password"] {
    padding-right: 50px;
}

.form-group .password-toggle {
    position: absolute;
    right: 16px;
    top: 42px;
    width: 20px;
    height: 20px;
    opacity: 0.5;
    transition: all 0.3s;
    cursor: pointer;
    z-index: 2;
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-group .password-toggle:hover {
    opacity: 0.8;
}

.form-group .password-toggle svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary-color);
    transition: all 0.3s;
    fill: none;
}

.form-group .password-toggle:focus {
    outline: none;
    opacity: 1;
}

.form-group input[type="password"] ~ .password-toggle svg.eye-off,
.form-group input[type="text"] ~ .password-toggle svg.eye {
    display: none;
}

.form-group input[type="password"] ~ .password-toggle svg.eye,
.form-group input[type="text"] ~ .password-toggle svg.eye-off {
    display: block;
}

.form-group input:focus ~ .input-icon,
.form-group input:not(:placeholder-shown) ~ .input-icon {
    opacity: 0.9;
    transform: scale(1.15);
    color: var(--primary-color);
}

/* Icon colors */
.form-group .input-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary-color);
    transition: all 0.3s;
    fill: none;
}

.form-group input:focus ~ .input-icon svg {
    stroke: var(--primary-darker);
    filter: drop-shadow(0 0 6px rgba(146, 195, 205, 0.6));
    transform: scale(1.15);
}

.form-group input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 4px rgba(146, 195, 205, 0.15),
        0 4px 16px rgba(146, 195, 205, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    background: var(--bg-white);
    transform: translateY(-2px) scale(1.01);
    border-width: 2.5px;
}

.form-group input:focus::placeholder {
    opacity: 0.3;
    transform: translateX(4px);
}

.form-group input:hover:not(:focus) {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(146, 195, 205, 0.2);
    background: rgba(232, 242, 245, 0.3);
}

.form-group input.error {
    border-color: var(--error-color);
    animation: shake 0.4s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.form-group .error-message {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 6px;
    display: none;
}

.form-group.has-error .error-message {
    display: block;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    line-height: 1.5;
}

.checkbox-group label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.checkbox-group label a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.checkbox-group.has-error {
    border: 1px solid var(--error-color);
    border-radius: 8px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.05);
}

.checkbox-group.has-error input[type="checkbox"] {
    border-color: var(--error-color);
}

.checkbox-group.has-error label {
    color: var(--error-color);
}

.btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.btn:hover::before {
    width: 200px;
    height: 200px;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-on-primary);
    box-shadow: 
        var(--shadow-md), 
        var(--shadow-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    border: 2px solid rgba(146, 195, 205, 0.5);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 15px;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.15),
        0 0 20px rgba(146, 195, 205, 0.3);
    background: var(--gradient-dark);
    border-color: rgba(146, 195, 205, 0.6);
    color: white;
}

.btn-primary:active {
    background: var(--gradient-primary);
    transform: translateY(0);
    box-shadow: 
        0 5px 10px rgba(0, 0, 0, 0.1),
        0 0 10px rgba(146, 195, 205, 0.2);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
}

.btn-primary:disabled::before {
    display: none;
}

.btn-link {
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    width: auto;
}

.btn-link:hover {
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

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

.divider span {
    padding: 0 16px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

.alert {
    padding: 18px 24px;
    border-radius: 14px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    position: relative;
    border-left: 4px solid;
    box-shadow: 
        var(--shadow-md),
        0 0 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
}

.alert.show {
    display: block;
    animation: slideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.alert-success {
    background: linear-gradient(135deg, rgba(146, 195, 205, 0.2) 0%, rgba(184, 217, 224, 0.25) 100%);
    color: var(--primary-darker);
    border-left-color: var(--primary-color);
    border: 1px solid rgba(146, 195, 205, 0.4);
    box-shadow: 
        var(--shadow-md),
        0 0 25px rgba(146, 195, 205, 0.2);
}

.alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-left-color: #ef4444;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-right-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Floating label effect */
.form-group.floating-label {
    position: relative;
}

.form-group.floating-label label {
    position: absolute;
    top: 14px;
    left: 18px;
    font-size: 15px;
    color: var(--text-light);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-white);
    padding: 0 4px;
}

.form-group.floating-label input:focus + label,
.form-group.floating-label input:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Enhanced checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.3s;
    cursor: pointer;
}

.checkbox-group:hover {
    background: rgba(232, 242, 245, 0.5);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
    border-radius: 6px;
    border: 2px solid var(--primary-light);
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-group label {
    margin: 0;
    font-size: 14px;
    color: var(--primary-darker);
    cursor: pointer;
    font-weight: 500;
    user-select: none;
}

/* Link styles */
.btn-link {
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 0;
    width: auto;
    transition: all 0.3s;
    position: relative;
}

.btn-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.btn-link:hover::after {
    width: 100%;
}

.btn-link:hover {
    color: var(--primary-darker);
    transform: translateX(2px);
    text-shadow: 0 0 8px rgba(146, 195, 205, 0.4);
}

/* Divider enhancement */
.divider {
    display: flex;
    align-items: center;
    margin: 28px 0;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

.divider span {
    padding: 0 20px;
}

/* Auth footer enhancement */
.auth-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--primary-lighter);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.auth-footer a:hover::after {
    width: 100%;
}

.auth-footer a:hover {
    color: var(--primary-darker);
    text-shadow: 0 0 8px rgba(146, 195, 205, 0.4);
    transform: translateX(2px);
}

/* Responsive - Tablets */
@media (max-width: 768px) and (min-width: 481px) {
    .form-group input {
        padding-left: 46px;
        font-size: 15px;
    }
    
    .form-group input[type="password"],
    .form-group input[type="text"][id*="password"],
    .form-group input[type="text"][id*="Password"] {
        padding-right: 46px;
    }
    
    .form-group .input-icon {
        left: 15px;
        width: 19px;
        height: 19px;
    }
    
    .form-group .password-toggle {
        right: 15px;
        width: 21px;
        height: 21px;
    }
}

/* Responsive - Mobile phones */
@media (max-width: 480px) {
    .auth-container {
        border-radius: 20px;
        max-width: 100%;
        margin: 10px;
    }
    
    .auth-header {
        padding: 36px 24px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .auth-body {
        padding: 28px 20px;
    }
    
    .language-switcher {
        top: 16px;
        right: 16px;
        padding: 4px;
    }
    
    .language-switcher button {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    /* Input fields with icons - ensure text doesn't go under icon */
    .form-group input {
        padding: 12px 16px 12px 44px;
        font-size: 16px; /* Prevent zoom on iOS when focusing */
        min-height: 48px; /* Better touch target on mobile */
    }
    
    /* Password fields need extra padding for toggle button */
    .form-group input[type="password"],
    .form-group input[type="text"][id*="password"],
    .form-group input[type="text"][id*="Password"] {
        padding-right: 48px;
    }
    
    /* Date inputs */
    .form-group input[type="date"] {
        padding: 12px 16px 12px 44px;
        font-size: 16px;
        min-height: 48px;
    }
    
    /* Adjust icon position for mobile - align with input center */
    .form-group .input-icon {
        left: 14px;
        top: 40px; /* Adjusted for label height (26px) + input padding */
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Adjust password toggle position for mobile */
    .form-group .password-toggle {
        right: 14px;
        top: 40px; /* Same as icon for consistency */
        width: 22px;
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-group .password-toggle svg {
        width: 18px;
        height: 18px;
    }
}

/* Extra small devices (phones in portrait, less than 360px) */
@media (max-width: 360px) {
    .auth-body {
        padding: 24px 16px;
    }
    
    .form-group input {
        padding: 11px 14px 11px 42px;
        font-size: 16px;
    }
    
    .form-group input[type="password"],
    .form-group input[type="text"][id*="password"],
    .form-group input[type="text"][id*="Password"] {
        padding-right: 44px;
    }
    
    .form-group .input-icon {
        left: 12px;
        top: 38px; /* Adjusted for smaller padding */
        width: 16px;
        height: 16px;
    }
    
    .form-group .password-toggle {
        right: 12px;
        top: 38px; /* Same as icon for consistency */
        width: 20px;
        height: 20px;
    }
    
    .form-group .password-toggle svg {
        width: 16px;
        height: 16px;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced form group animations */
.form-group {
    animation: formGroupFadeIn 0.6s ease-out both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group:nth-child(6) { animation-delay: 0.6s; }

@keyframes formGroupFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced checkbox styling */
.checkbox-group input[type="checkbox"] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

.checkbox-group input[type="checkbox"]:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(146, 195, 205, 0.4);
}

.checkbox-group input[type="checkbox"]:checked {
    animation: checkboxCheck 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkboxCheck {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

/* Enhanced input transitions */
.form-group input:not(:focus):hover {
    border-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(146, 195, 205, 0.1);
}

/* Cursor pointer for interactive elements */
button, a, input[type="checkbox"], label {
    cursor: pointer;
}

/* Selection color */
::selection {
    background: rgba(146, 195, 205, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(146, 195, 205, 0.3);
    color: var(--text-primary);
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Google Places Autocomplete Styles */
.pac-container {
    background-color: var(--bg-white) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-lg) !important;
    margin-top: 8px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    z-index: 10000 !important;
}

.pac-item {
    padding: 12px 16px !important;
    cursor: pointer !important;
    border-top: 1px solid var(--border-color) !important;
    font-size: 14px !important;
    color: var(--text-primary) !important;
    transition: all 0.2s ease !important;
}

.pac-item:first-child {
    border-top: none !important;
}

.pac-item:hover,
.pac-item-selected {
    background-color: var(--primary-lightest) !important;
    color: var(--primary-darker) !important;
}

.pac-item-query {
    color: var(--text-primary) !important;
    font-weight: 500 !important;
}

.pac-icon {
    margin-right: 8px !important;
    width: 15px !important;
    height: 20px !important;
}

.pac-matched {
    font-weight: 600 !important;
    color: var(--primary-color) !important;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
