/* Split Layout */
.auth-layout {
    display: flex;
    min-height: calc(100vh - 100px);
    max-width: 1200px;
    width: calc(100% - 3rem);
    margin: 0 auto;
    gap: 4rem;
    align-items: center;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

.auth-left {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Section */
.auth-hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.auth-hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 3rem;
    font-weight: 300;
}

.auth-stats {
    display: inline-flex;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

/* Glow effect inside stats card */
.auth-stats::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.03), transparent);
    transform: skewX(-20deg);
    animation: shine 6s infinite;
}

.auth-stat {
    display: flex;
    flex-direction: column;
    position: relative;
}

.auth-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #fff 0%, #dcdcdc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Premium Glassmorphism Card */
.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    margin-top: -4rem; /* Kullanıcının isteği üzerine formu hafif yukarı çektik */
    position: relative;
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    overflow: hidden;
}

/* Glow effect inside card */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.03), transparent);
    transform: skewX(-20deg);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.auth-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.auth-card-titles {
    display: flex;
    flex-direction: column;
}

.auth-card-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.auth-card-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

/* Auth Form Sections */
.auth-form-section { display: none; }
.auth-form-section.active { display: block; }

/* Form Elements */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.2rem;
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.form-group input::placeholder { color: rgba(255, 255, 255, 0.3); }

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

.password-input-wrapper input {
    padding-right: 2.5rem; /* Make room for the eye icon */
}

.toggle-password {
    position: absolute;
    right: 1rem;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.toggle-password:hover, .toggle-password.active {
    color: #fff;
}

/* Autofill fixes */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #1a1a24 inset !important;
    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Hide Browser Default Password Eyes (Edge/IE) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

/* Primary Button */
.btn-auth-primary {
    padding: 0.9rem 1.25rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    color: #000;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 0.5rem;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

.btn-auth-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 255, 255, 0.25);
}

.btn-auth-primary:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.75rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1) 50%, transparent);
}

.auth-divider span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Social Buttons */
.auth-social-buttons {
    display: flex;
    gap: 1rem;
}

.btn-social {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-social.google:hover { border-color: rgba(219, 68, 55, 0.5); box-shadow: 0 8px 20px rgba(219, 68, 55, 0.15); }
.btn-social.google i { color: #db4437; font-size: 1.1rem; }

.btn-social.discord:hover { border-color: rgba(88, 101, 242, 0.5); box-shadow: 0 8px 20px rgba(88, 101, 242, 0.15); }
.btn-social.discord i { color: #5865F2; font-size: 1.1rem; }

/* Switch Text */
.auth-switch {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.auth-switch a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Auth Mascot */
.auth-mascot {
    width: 64px;
    height: 64px;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}
.mascot-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

@keyframes floatBot {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.bot-head-group {
    animation: floatBot 3s ease-in-out infinite;
    transform-origin: center;
}

/* Remember Me Toggle */
.form-options {
    display: flex;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0.5rem;
    padding-left: 0.2rem;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.toggle-switch {
    position: relative;
    width: 38px;
    height: 22px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.08);
    transition: .3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: #a0a0a0;
    transition: .3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: none;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(16px);
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.toggle-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    transition: color 0.3s;
}

.toggle-switch input:checked ~ .toggle-text {
    color: #fff;
}

.toggle-label:hover .toggle-text {
    color: #fff;
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.strength-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}
.strength-fill {
    height: 100%;
    width: 0%;
    background: #ff4d4d;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}
.strength-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.auth-switch a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.auth-switch a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Feature Badges */
.auth-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    width: fit-content;
    min-width: 460px; /* Ortalama olarak auth-stats genişliğine eşitliyoruz */
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.feature-badge i {
    color: #a0a0a0;
}

/* Responsive */
@media (max-width: 900px) {
    .auth-layout {
        flex-direction: column-reverse;
        gap: 2.5rem;
        padding: 1rem 0;
        margin-top: 0.5rem;
        width: calc(100% - 3rem);
        align-items: stretch;
    }
    
    .auth-left { 
        text-align: center; 
        align-items: center;
    }

    .auth-right {
        width: 100%;
    }
    
    .auth-features {
        justify-content: center;
        min-width: unset;
        width: 100%;
    }
    
    .auth-hero-title { font-size: 3.2rem; }
    
    .auth-hero-desc { margin: 0 auto 2rem; }
    
    .auth-card {
        margin-top: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .auth-hero-title { font-size: 2.2rem; letter-spacing: -1px; }
    .auth-hero-desc { font-size: 1rem; line-height: 1.5; margin-bottom: 1.5rem; }
    
    .auth-stats { 
        flex-direction: row; 
        flex-wrap: wrap; 
        gap: 1rem; 
        padding: 1.2rem;
        width: 100%;
        justify-content: center;
    }
    .auth-stat {
        flex: 1 1 30%;
        min-width: 80px;
    }
    .auth-stat:not(:last-child)::after {
        display: none;
    }
    .auth-stat-num { font-size: 1.4rem; }
    .auth-stat-label { font-size: 0.65rem; }
    
    .auth-features {
        gap: 0.6rem;
        margin-top: 1.5rem;
    }
    .feature-badge { 
        padding: 0.4rem 0.8rem; 
        font-size: 0.75rem; 
    }

    .auth-card { 
        padding: 1.5rem 1.2rem; 
        border-radius: 20px; 
    }
    
    .auth-card-header { margin-bottom: 1.5rem; }
    .auth-card-title { font-size: 1.4rem; }
    .auth-card-desc { font-size: 0.85rem; }
    .auth-mascot { width: 48px; height: 48px; }

    .form-group input {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    .form-group label {
        font-size: 0.75rem;
    }

    .auth-social-buttons { flex-direction: column; gap: 0.8rem; }
    .btn-auth-primary, .btn-social { 
        padding: 0.8rem; 
        font-size: 0.95rem; 
    }
    
    .auth-divider { margin: 1.25rem 0; }
}
