/**
 * GPR Superstore - Authentication Styles
 * Premium Corporate Login / Register Experience
 */

/* Auth Page Layout */
.auth-page {
    min-height: 100vh;
    background-color: var(--bg-secondary);
}

.auth-container {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   Left Side - Corporate Branding Panel
   ============================================ */
.auth-branding {
    flex: 0 0 44%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 3.5rem;
    background: var(--navy-900);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

/* Subtle geometric background pattern */
.auth-branding::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -15%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle at center, rgba(0, 161, 156, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

.auth-branding::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 55%;
    height: 55%;
    background: radial-gradient(circle at center, rgba(118, 63, 152, 0.14) 0%, transparent 60%);
    pointer-events: none;
}

/* Accent line at top */
.auth-branding .brand-accent-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.auth-branding-content {
    position: relative;
    z-index: 1;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 3.5rem;
}

.auth-logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-logo-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.auth-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.02em;
}

.logo-tagline {
    font-size: 0.625rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Legacy logo-text support */
.logo-text {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-tight);
}

.logo-subtext {
    font-size: var(--text-xl);
    font-weight: var(--font-light);
    opacity: 0.85;
}

.auth-tagline {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: #FFFFFF;
}

.auth-tagline em {
    font-style: normal;
    color: var(--color-primary);
}

.auth-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
    max-width: 380px;
    margin-bottom: 2.5rem;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
}

.feature-icon {
    width: 22px;
    height: 22px;
    color: var(--color-primary);
    opacity: 1;
    flex-shrink: 0;
}

.auth-branding-footer {
    position: relative;
    z-index: 1;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-branding-footer p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
    letter-spacing: 0.02em;
}

/* ============================================
   Right Side - Form Panel
   ============================================ */
.auth-form-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background-color: var(--bg-secondary);
}

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

/* Auth Card */
.auth-card {
    background-color: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.1), 0 1px 4px rgba(15, 23, 42, 0.05);
    padding: 2.5rem;
    border: 1px solid var(--border-light);
}

.auth-card-register {
    max-width: 460px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    letter-spacing: -0.025em;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin: 0;
    line-height: 1.5;
}

/* Auth Form */
.auth-form {
    margin-bottom: 1.5rem;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.auth-footer p {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin: 0;
}

.auth-link {
    font-weight: 600;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

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

/* Back Link */
.auth-footer .auth-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
}

.back-icon {
    width: 14px;
    height: 14px;
}

/* Form specific adjustments for auth */
.auth-form .form-input {
    padding: var(--spacing-4);
    padding-left: calc(var(--spacing-4) + 20px + var(--spacing-3));
}

.auth-form .input-icon {
    left: var(--spacing-4);
}

.auth-form .password-toggle {
    right: var(--spacing-4);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .auth-branding {
        flex: 0 0 40%;
        padding: 2.5rem 2.5rem;
    }

    .auth-tagline {
        font-size: 1.625rem;
    }
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-branding {
        flex: none;
        padding: 2rem 1.75rem;
        min-height: auto;
    }

    .auth-logo {
        margin-bottom: 1.5rem;
    }

    .auth-tagline {
        font-size: 1.375rem;
        margin-bottom: 0.5rem;
    }

    .auth-description {
        display: none;
    }

    .auth-features {
        display: none;
    }

    .auth-branding-footer {
        display: none;
    }

    .auth-form-wrapper {
        padding: 2rem 1.25rem;
    }

    .auth-card {
        padding: 2rem;
        border-radius: 12px;
    }

    .auth-header {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-form-wrapper {
        padding: 1.25rem;
    }

    .auth-card {
        padding: 1.5rem;
        border-radius: 10px;
    }

    .auth-title {
        font-size: 1.25rem;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.auth-card {
    animation: fadeInUp 0.35s cubic-bezier(0, 0, 0.2, 1);
}

.auth-branding-content {
    animation: fadeIn 0.5s ease-out 0.15s both;
}

.auth-feature:nth-child(1) { animation: fadeInUp 0.4s ease-out 0.25s both; }
.auth-feature:nth-child(2) { animation: fadeInUp 0.4s ease-out 0.35s both; }
.auth-feature:nth-child(3) { animation: fadeInUp 0.4s ease-out 0.45s both; }
