/* ============================================
   GlamourPRO - AUTH / GİRİŞ SAYFASI
   Lüks & Estetik Tasarım
   ============================================ */

.auth-layout {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--gp-body-bg);
}

.auth-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
}

/* ===== CONTAINER ===== */
.auth-container {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ===== SOL VİZUAL PANEL ===== */
.auth-visual {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #1a1025 0%, #2d1b4e 40%, #4c1d95 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 100vh;
}

.auth-visual-overlay {
    position: absolute;
    inset: 0;
    background:
            radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
            radial-gradient(ellipse at 50% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
}

.auth-visual-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    max-width: 420px;
}

.auth-visual-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--gp-primary), var(--gp-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    box-shadow:
            0 8px 32px rgba(139, 92, 246, 0.4),
            0 0 60px rgba(139, 92, 246, 0.15);
    animation: authIconFloat 6s ease-in-out infinite;
}

@keyframes authIconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

.auth-visual-icon i {
    font-size: 2.2rem;
    color: white;
}

.auth-visual-content h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.auth-visual-content h2 span {
    background: linear-gradient(135deg, var(--gp-primary-light), var(--gp-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-visual-content > p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    margin-bottom: 48px;
}

/* Özellikler */
.auth-visual-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.auth-feature:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.auth-feature i {
    font-size: 1.2rem;
    color: var(--gp-primary-light);
    flex-shrink: 0;
}

.auth-feature span {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

/* Dekoratif Elementler */
.auth-decor {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    pointer-events: none;
}

.auth-decor-1 {
    width: 400px;
    height: 400px;
    background: var(--gp-primary);
    top: -100px;
    right: -100px;
    animation: authDecorPulse 8s ease-in-out infinite;
}

.auth-decor-2 {
    width: 250px;
    height: 250px;
    background: var(--gp-secondary);
    bottom: -60px;
    left: -60px;
    animation: authDecorPulse 10s ease-in-out infinite reverse;
}

.auth-decor-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--gp-primary), var(--gp-secondary));
    top: 50%;
    left: 10%;
    animation: authDecorPulse 12s ease-in-out infinite 2s;
}

@keyframes authDecorPulse {
    0%, 100% { transform: scale(1); opacity: 0.08; }
    50% { transform: scale(1.1); opacity: 0.12; }
}


/* ===== SAĞ FORM PANEL ===== */
.auth-form-panel {
    width: 520px;
    min-width: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gp-card-bg);
    padding: 40px;
    position: relative;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 380px;
}

/* Mobil Logo */
.auth-mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 32px;
}

.auth-mobile-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--gp-primary), var(--gp-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 6px 24px rgba(var(--gp-primary-rgb), 0.3);
}

.auth-mobile-icon i {
    font-size: 1.7rem;
    color: white;
}

.auth-mobile-logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gp-text-primary);
}

.auth-mobile-logo h1 span {
    color: var(--gp-primary);
}

/* Hoş Geldiniz */
.auth-welcome {
    margin-bottom: 32px;
}

.auth-welcome h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gp-text-primary);
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.auth-welcome p {
    font-size: 0.875rem;
    color: var(--gp-text-muted);
    font-weight: 400;
}

/* ===== FORM ===== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gp-text-secondary);
}

.auth-label i {
    font-size: 0.95rem;
    color: var(--gp-text-muted);
}

.auth-input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--gp-border);
    border-radius: var(--gp-radius);
    font-size: 0.9rem;
    font-family: var(--gp-font);
    color: var(--gp-text-primary);
    background: var(--gp-card-bg);
    outline: none;
    transition: all 0.25s ease;
    -webkit-appearance: none;
}

.auth-input::placeholder {
    color: var(--gp-text-light);
    font-weight: 400;
}

.auth-input:focus {
    border-color: var(--gp-primary);
    box-shadow: 0 0 0 4px rgba(var(--gp-primary-rgb), 0.08);
}

.auth-input.error {
    border-color: var(--gp-danger);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

/* Password Toggle */
.auth-password-wrap {
    position: relative;
}

.auth-password-wrap .auth-input {
    padding-right: 48px;
}

.auth-password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: var(--gp-text-muted);
    cursor: pointer;
    border-radius: var(--gp-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: var(--gp-transition);
}

.auth-password-toggle:hover {
    color: var(--gp-primary);
    background: rgba(var(--gp-primary-rgb), 0.06);
}

/* Field Error */
.auth-field-error {
    font-size: 0.72rem;
    color: var(--gp-danger);
    font-weight: 500;
    min-height: 0;
    transition: all 0.2s ease;
}

.auth-field-error:empty {
    display: none;
}

/* Options Row */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--gp-text-secondary);
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
}

.auth-checkbox input {
    display: none;
}

.auth-check-mark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gp-border);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.auth-checkbox input:checked + .auth-check-mark {
    background: var(--gp-primary);
    border-color: var(--gp-primary);
}

.auth-checkbox input:checked + .auth-check-mark::after {
    content: '✓';
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
}

.auth-forgot {
    font-size: 0.78rem;
    color: var(--gp-primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--gp-transition);
}

.auth-forgot:hover {
    color: var(--gp-primary-dark);
}

/* Submit Button */
.auth-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--gp-radius);
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--gp-font);
    color: white;
    background: linear-gradient(135deg, var(--gp-primary), var(--gp-primary-dark));
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(var(--gp-primary-rgb), 0.3);
    -webkit-tap-highlight-color: transparent;
    margin-top: 4px;
}

.auth-submit:hover {
    box-shadow: 0 6px 28px rgba(var(--gp-primary-rgb), 0.4);
    transform: translateY(-1px);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-submit:disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* Footer */
.auth-footer-text {
    text-align: center;
    margin-top: 32px;
}

.auth-footer-text p {
    font-size: 0.72rem;
    color: var(--gp-text-light);
    font-weight: 400;
}

/* Spin Animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spin { animation: spin 0.8s linear infinite; }


/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1024px) {
    .auth-visual {
        display: none;
    }

    .auth-form-panel {
        width: 100%;
        min-width: 100%;
    }

    .auth-mobile-logo {
        display: block;
    }
}

/* ============================================
   RESPONSIVE - MOBİL
   ============================================ */
@media (max-width: 768px) {
    .auth-form-panel {
        padding: 24px 20px;
        align-items: flex-start;
        padding-top: 60px;
        background:
                linear-gradient(180deg, rgba(var(--gp-primary-rgb), 0.02) 0%, var(--gp-card-bg) 30%);
    }

    .auth-form-wrapper {
        max-width: 100%;
    }

    .auth-welcome h2 {
        font-size: 1.4rem;
    }

    .auth-input {
        padding: 12px 14px;
        font-size: 16px; /* iOS zoom fix */
    }

    .auth-submit {
        padding: 15px;
    }

    .auth-mobile-icon {
        width: 54px;
        height: 54px;
        border-radius: 16px;
    }

    .auth-mobile-icon i {
        font-size: 1.5rem;
    }

    .auth-mobile-logo h1 {
        font-size: 1.5rem;
    }

    .auth-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}