/* ============================================
   Login Page - Sayfa Ozel Stiller
   ============================================ */

/* Container */
.login-container {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
}

/* Sol Panel */
.login-left {
    flex: 0 0 50%;
    background: linear-gradient(135deg, #075E54 0%, #128C7E 40%, #C62828 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

    .login-left::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
        animation: pulse 4s ease-in-out infinite;
    }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.login-left-content {
    position: relative;
    z-index: 1;
    max-width: 440px;
}

.login-logo h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.text-ntn {
    color: #FF6B6B;
    font-weight: 800;
}

.login-logo-sub {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 40px;
}

.login-welcome {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 32px;
}

.login-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .login-features li {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 0;
        font-size: 15px;
        opacity: 0.95;
    }

        .login-features li i {
            font-size: 20px;
            color: var(--accent, #25D366);
            flex-shrink: 0;
        }

/* Sag Panel */
.login-right {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    overflow-y: auto;
    background: var(--bg-secondary, #fff);
}

.login-form-wrapper {
    width: 100%;
    max-width: 420px;
}

.login-form-header {
    margin-bottom: 32px;
}

    .login-form-header h2 {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 8px;
    }

    .login-form-header p {
        font-size: 14px;
        color: var(--text-secondary);
    }

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 6px;
    }

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color, #E9EDEF);
    border-radius: var(--radius-md, 12px);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-secondary, #fff);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

    .form-input:focus {
        border-color: var(--primary, #075E54);
        box-shadow: 0 0 0 3px rgba(7, 94, 84, 0.1);
    }

    .form-input::placeholder {
        color: var(--text-muted, #8696A0);
    }

    .form-input.error {
        border-color: var(--danger, #EF4444);
    }

/* Input with Icon */
.input-icon-wrapper {
    position: relative;
}

    .input-icon-wrapper > i:first-child {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
        font-size: 16px;
        pointer-events: none;
        z-index: 1;
    }

.form-input.with-icon {
    padding-left: 42px;
}

.form-input.with-toggle {
    padding-right: 44px;
}

/* Password Toggle */
.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 16px;
    padding: 4px;
    transition: color 0.2s;
    z-index: 2;
}

    .password-toggle-btn:hover {
        color: var(--text-primary);
    }

/* Form Error */
.form-error {
    display: block;
    font-size: 12px;
    color: var(--danger, #EF4444);
    margin-top: 4px;
    min-height: 16px;
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary, #075E54);
    cursor: pointer;
    flex-shrink: 0;
}

.form-check-label {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.link-primary {
    color: var(--primary, #075E54);
    text-decoration: none;
    font-weight: 600;
}

    .link-primary:hover {
        text-decoration: underline;
    }

/* Button */
.btn-block {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md, 12px);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.btn-primary {
    background: var(--primary, #075E54);
    color: #fff;
}

    .btn-primary:hover {
        background: var(--primary-light, #128C7E);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(7, 94, 84, 0.3);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

    .btn-primary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Register Link */
.login-register-link {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================
   Sonuc Modallari (Basari / Hata)
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}

.modal-container {
    background: var(--bg-secondary, #fff);
    border-radius: var(--radius-lg, 16px);
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.result-modal-container {
    max-width: 400px;
    padding: 0;
    overflow: hidden;
}

.result-modal-body {
    padding: 40px 32px;
    text-align: center;
}

    .result-modal-body h3 {
        font-size: 20px;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0 0 8px 0;
    }

    .result-modal-body p {
        font-size: 14px;
        color: var(--text-secondary);
        margin: 0 0 24px 0;
        line-height: 1.5;
    }

/* Sonuc Ikon */
.result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

    .result-icon i {
        font-size: 36px;
    }

.result-icon-success {
    background: rgba(37, 211, 102, 0.12);
}

    .result-icon-success i {
        color: #25D366;
    }

.result-icon-error {
    background: rgba(239, 68, 68, 0.12);
}

    .result-icon-error i {
        color: var(--danger, #EF4444);
    }

/* Geri Sayim */
.countdown-wrapper {
    display: flex;
    justify-content: center;
}

.countdown-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary, #075E54);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    animation: pulse-countdown 1s ease-in-out infinite;
}

@keyframes pulse-countdown {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

/* Hata Modal Butonu */
.btn-modal-action {
    display: inline-block;
    padding: 12px 40px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md, 12px);
    cursor: pointer;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .login-left {
        display: none;
    }

    .login-right {
        flex: 1;
        padding: 32px 20px;
    }
}

@media (max-width: 480px) {
    .login-right {
        padding: 24px 16px;
    }

    .login-form-header h2 {
        font-size: 1.25rem;
    }

    .result-modal-container {
        max-width: 320px;
    }

    .result-modal-body {
        padding: 32px 20px;
    }
}

/* ============================================
   Dark Mode
   ============================================ */

[data-theme="dark"] .login-right {
    background: var(--bg-secondary);
}

[data-theme="dark"] .form-input {
    background: var(--input-bg, #2A3942);
    border-color: var(--border-color, #2A3942);
    color: var(--text-primary);
}

    [data-theme="dark"] .form-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(7, 94, 84, 0.2);
    }

[data-theme="dark"] .modal-container {
    background: var(--bg-secondary);
}

[data-theme="dark"] .result-modal-container {
    background: var(--bg-secondary, #1F2C34);
}
