/*------------------------------------------------------------------
* moderndurak Admin UI - Auth Styles
* Login sayfası stilleri
-------------------------------------------------------------------*/

/* ========================
   GENEL
   ======================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Lato", "Helvetica Neue", Arial, Helvetica, sans-serif;
}

/* ========================
   WRAPPER - TAM EKRAN
   ======================== */
.login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ========================
   SOL PANEL - HERO
   ======================== */
.login-hero {
    flex: 1;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 50%, #5B21B6 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.login-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero-brand {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    color: #fff;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 3rem;
    font-weight: 400;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 300px;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.95rem;
    opacity: 0.92;
}

.hero-features li:last-child {
    border-bottom: none;
}

.hero-features li .feature-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

/* ========================
   SAĞ PANEL - FORM
   ======================== */
.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 3rem 2.5rem;
}

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

.login-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.login-form-desc {
    font-size: 0.9rem;
    color: #6B7280;
    margin-bottom: 2rem;
}

.login-form-container .form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
}

.login-form-container .form-control {
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    padding: 0.65rem 0.95rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #F9FAFB;
}

.login-form-container .form-control:focus {
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    background: #fff;
    outline: none;
}

/* ========================
   ŞİFRE TOGGLE
   ======================== */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.password-toggle:hover {
    color: #6B7280;
}

/* ========================
   GİRİŞ BUTONU
   ======================== */
.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    border: none;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.btn-login:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    color: #fff;
}

/* ========================
   HATA MESAJI
   ======================== */
.login-error {
    color: #DC2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* ========================
   MOBİL RESPONSIVE (768px altı tek kolon)
   ======================== */
@media (max-width: 768px) {
    .login-hero {
        display: none;
    }

    .login-form-panel {
        padding: 2rem 1.5rem;
    }

    .login-form-container {
        max-width: 100%;
    }
}
