/* ============================================
   JAGUAR TERRITORY - Authentication Styles
   Premium Login & Register Pages
   ============================================ */

.auth-page {
    min-height: 100vh;
    background: var(--color-black);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* Left Side - Branding */
.auth-left {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    overflow: hidden;
}

.auth-left-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?w=1200&h=1600&fit=crop') center/cover no-repeat;
    z-index: 0;
}

.auth-left-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.7) 100%);
}

.auth-left-content {
    position: relative;
    z-index: 1;
    max-width: 450px;
}

.auth-logo {
    display: inline-block;
    margin-bottom: 40px;
}

.auth-logo-img {
    height: 80px;
    width: auto;
    filter: brightness(1.1);
}

.auth-title {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.auth-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-light);
    line-height: 1.7;
    margin-bottom: 40px;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(201, 169, 98, 0.1);
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: 8px;
    transition: var(--transition-normal);
}

.auth-feature:hover {
    background: rgba(201, 169, 98, 0.15);
    border-color: rgba(201, 169, 98, 0.4);
    transform: translateX(5px);
}

.auth-feature svg {
    width: 24px;
    height: 24px;
    color: var(--color-gold);
    flex-shrink: 0;
}

.auth-feature span {
    font-size: 0.9375rem;
    color: var(--color-white);
}

/* Right Side - Form */
.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: var(--color-black-light);
}

.auth-form-container {
    width: 100%;
    max-width: 440px;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-form-header h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 8px;
}

.auth-form-header p {
    font-size: 0.9375rem;
    color: var(--color-gray);
}

/* Alerts */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    animation: slideDown 0.3s ease;
}

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

.auth-alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.auth-alert span {
    font-size: 0.875rem;
    line-height: 1.5;
}

.auth-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.auth-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form .form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-white);
}

.auth-form .form-group label .required {
    color: var(--color-gold);
}

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

.input-wrapper > svg,
.input-wrapper > i {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: var(--color-gray);
    pointer-events: none;
    transition: var(--transition-normal);
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-size: 0.9375rem;
    color: var(--color-white);
    background: var(--color-black);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: var(--transition-normal);
}

.input-wrapper input::placeholder {
    color: var(--color-gray);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.1);
}

.input-wrapper input:focus + svg,
.input-wrapper:focus-within > svg:first-of-type,
.input-wrapper:focus-within > i:first-of-type {
    color: var(--color-gold);
}

.password-toggle {
    position: absolute;
    right: 12px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-gray);
    transition: var(--transition-normal);
}

.password-toggle:hover {
    color: var(--color-gold);
}

.password-toggle svg,
.password-toggle i {
    width: 20px;
    height: 20px;
}

/* Form Row */
.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--color-gray-light);
}

.checkbox-wrapper input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.checkbox-wrapper input:checked + .checkmark {
    background: var(--color-gold);
    border-color: var(--color-gold);
}

.checkbox-wrapper input:checked + .checkmark::after {
    content: '✓';
    color: var(--color-black);
    font-size: 12px;
    font-weight: bold;
}

.checkbox-wrapper a {
    color: var(--color-gold);
    text-decoration: underline;
}

.forgot-link {
    font-size: 0.875rem;
    color: var(--color-gold);
    transition: var(--transition-normal);
}

.forgot-link:hover {
    color: var(--color-gold-light);
}

/* Password Requirements */
.password-requirements {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.password-requirements p {
    font-size: 0.8125rem;
    color: var(--color-gray);
    margin-bottom: 10px;
}

.password-requirements ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--color-gray);
    transition: var(--transition-normal);
}

.password-requirements li svg,
.password-requirements li i {
    width: 14px;
    height: 14px;
    color: var(--color-gray);
    transition: var(--transition-normal);
}

.password-requirements li.valid {
    color: #34d399;
}

.password-requirements li.valid svg,
.password-requirements li.valid i {
    color: #34d399;
}

/* Button Loader */
.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    font-size: 0.8125rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Social Login */
.social-login {
    display: flex;
    gap: 12px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-white);
    background: var(--color-black);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-social:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-google:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Footer Text */
.auth-footer-text {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9375rem;
    color: var(--color-gray);
}

.auth-footer-text a {
    color: var(--color-gold);
    font-weight: 500;
    transition: var(--transition-normal);
}

.auth-footer-text a:hover {
    color: var(--color-gold-light);
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-left {
        display: none;
    }
    
    .auth-right {
        padding: 40px 24px;
    }
}

@media (max-width: 480px) {
    .auth-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .password-requirements ul {
        grid-template-columns: 1fr;
    }
    
    .auth-form-header h2 {
        font-size: 1.75rem;
    }
}
