:root,
[data-theme="dark"] {
    --bg-dark: #050a10;
    --card-bg: rgba(13, 17, 23, 0.7);
    --neon-blue: #00d2ff;
    --neon-purple: #9d00ff;
    --text-main: #e0e6ed;
    --text-muted: #8b949e;
    --font-tech: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --input-bg: rgba(0, 0, 0, 0.3);
    --input-border: rgba(255, 255, 255, 0.1);
}

/* Light tema – açık ekran sevenler için */
[data-theme="light"] {
    --bg-dark: #e8eef4;
    --card-bg: rgba(255, 255, 255, 0.92);
    --neon-blue: #065f8a;
    --neon-purple: #6a4c93;
    --text-main: #1a202c;
    --text-muted: #4a5568;
    --input-bg: rgba(0, 0, 0, 0.06);
    --input-border: rgba(0, 0, 0, 0.12);
}

body,
html {
    height: 100%;
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    overflow: hidden;
    transition: background-color 0.35s ease;
}

/* Background Animation */
.login-container {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #1a202c 0%, #050a10 100%);
    overflow: hidden;
    transition: background 0.35s ease;
}

[data-theme="light"] .login-container {
    background: radial-gradient(circle at center, #c5d4e8 0%, #e8eef4 60%, #f0f4f8 100%);
}

.bg-shape {
    position: absolute;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out;
}

[data-theme="light"] .bg-shape {
    opacity: 0.35;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--neon-blue);
    top: -50px;
    left: -50px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--neon-purple);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: #00ff88;
    top: 40%;
    left: 20%;
    opacity: 0.3;
    animation: float 15s infinite reverse ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

/* Glassmorphism Card */
.login-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 460px;
    padding: 40px;
    padding-top: 52px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    text-align: center;
    animation: slideUp 0.8s ease-out;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

[data-theme="light"] .login-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Logo Area – ikon + yatay wordmark (tam PNG varsa .login-logo-full ile değiştirilebilir) */
.card-header-logo {
    position: relative;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-brand-row {
    flex-wrap: wrap;
    gap: 14px 16px;
    row-gap: 10px;
}

.login-logo-icon {
    height: 52px;
    width: auto;
    display: block;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    object-fit: contain;
}

.login-wordmark {
    position: relative;
    z-index: 2;
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: clamp(1.15rem, 4.2vw, 1.55rem);
    letter-spacing: 0.12em;
    line-height: 1.1;
    text-align: left;
    white-space: nowrap;
}

.wm-kent {
    color: #5fffd4;
    text-shadow: 0 0 14px rgba(0, 255, 200, 0.35);
}

.wm-konut {
    color: #7ecbff;
    text-shadow: 0 0 12px rgba(126, 203, 255, 0.35);
}

.wm-360 {
    margin-left: 0.08em;
    background: linear-gradient(90deg, #7ecbff 0%, #b388ff 55%, #e040fb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(157, 0, 255, 0.35));
}

[data-theme="light"] .wm-kent {
    color: #00946a;
    text-shadow: none;
}

[data-theme="light"] .wm-konut {
    color: #0077b6;
    text-shadow: none;
}

[data-theme="light"] .wm-360 {
    filter: none;
}

.login-logo {
    height: 84px;
    width: auto;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    border-radius: 10px;
}

/* Helper for logos with black background */
.logo-blend {
    mix-blend-mode: screen;
    border-radius: 6px;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.6) 0%, transparent 70%);
    z-index: 1;
    animation: pulse 2s infinite;
}

.logo-glow--wordmark {
    width: min(100%, 340px);
    height: 88px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 210, 255, 0.45) 0%, rgba(157, 0, 255, 0.15) 45%, transparent 72%);
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.5;
    }
}

/* Typography */
.login-title {
    color: var(--text-main);
    font-family: var(--font-tech);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.login-subtitle {
    color: var(--neon-blue);
    font-size: 14px;
    margin-bottom: 35px;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Brand Text Styling */
.brand-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.text-kent {
    color: #00ff9d;
    /* Neon Green */
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.4);
}

.text-konut {
    color: #ffffff;
}

.text-360 {
    color: var(--neon-blue);
    margin-left: 5px;
    background: -webkit-linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.5));
}

/* Form Elements — ikonlar sabit sütunda (üst üste hizalı), alanlar sağda */
.login-field-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    margin-bottom: 22px;
    text-align: left;
}

.login-field-icon {
    flex: 0 0 42px;
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-blue);
    font-size: 1.05rem;
    line-height: 1;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.login-field-icon i {
    width: 1.25em;
    text-align: center;
}

.login-field-body {
    flex: 1;
    min-width: 0;
}

.input-group-custom {
    position: relative;
    margin-bottom: 0;
    text-align: left;
}

.form-control-custom {
    width: 100%;
    background: var(--input-bg);
    border: none;
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--input-border);
}

.form-control-custom:focus {
    background: var(--input-bg);
    outline: none;
    box-shadow: none;
    color: var(--text-main);
}

[data-theme="light"] .form-control-custom:focus {
    background: rgba(0, 0, 0, 0.08);
}

/* Animated Border Bottom */
.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    transition: width 0.4s ease;
    z-index: 4;
    border-radius: 0 0 8px 8px;
    /* Rounded corners match input if needed, but this is a line */
}

.form-control-custom:focus~.input-border {
    width: 100%;
}

.login-field-row.focused .login-field-icon {
    color: var(--neon-purple);
    text-shadow: 0 0 5px var(--neon-purple);
}

/* Giriş: @ öncesi sol kutuda, alan adı sabit sağda */
.login-email-split {
    display: block;
}

.login-email-split .login-email-inner {
    display: flex;
    align-items: stretch;
    margin-left: 0;
    min-width: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--input-bg);
    border-bottom: 2px solid var(--input-border);
}

.login-email-split .form-control-custom.login-email-local {
    flex: 1;
    min-width: 0;
    border-radius: 0;
    border-bottom: none;
    padding-left: 12px;
    padding-right: 10px;
}

.login-email-suffix {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 12px 14px 12px 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
    white-space: nowrap;
    border-left: 1px solid var(--input-border);
    font-family: var(--font-body);
    letter-spacing: 0.02em;
}

.login-email-split:focus-within .login-email-inner {
    border-bottom-color: rgba(0, 210, 255, 0.35);
}

.login-email-split .input-border {
    left: 0;
}

.login-email-split:focus-within .input-border {
    width: 100%;
}

/* Tema değiştirici buton – kartın sağ üstü */
.theme-selector-wrap {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 5;
}
.theme-selector-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.theme-toggle {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--neon-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--neon-purple);
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.3);
}

.theme-toggle .theme-icon-light {
    display: none;
}

.theme-toggle .theme-icon-dark {
    display: inline-block;
}

[data-theme="light"] .theme-toggle {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.06);
    color: var(--neon-blue);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--neon-purple);
}

[data-theme="light"] .theme-toggle .theme-icon-dark {
    display: none;
}

[data-theme="light"] .theme-toggle .theme-icon-light {
    display: inline-block;
}

/* Giriş — KentKonut360 sunum modalı (carousel) */
.login-present-dialog {
    max-width: min(96vw, 1320px);
    width: 96vw;
    margin: 1rem auto;
}

.login-present-modal-content {
    background: #0b0e14;
    color: #e0e6ed;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

.login-present-modal-content .modal-header .modal-title {
    font-family: var(--font-tech);
    font-size: 1rem;
    letter-spacing: 0.06em;
    color: var(--text-main);
}

[data-theme="light"] .login-present-modal-content .modal-header .modal-title {
    color: #e0e6ed;
}

.login-present-carousel {
    background: #0b0e14;
}

.login-present-slide-frame {
    min-height: 42vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 40%, #1f1a32 0%, #0b0e14 65%);
    padding: 12px 16px 36px;
}

.login-present-slide-img {
    max-height: calc(100vh - 240px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.login-present-control {
    width: 8%;
    min-width: 44px;
}

.login-present-control .carousel-control-prev-icon,
.login-present-control .carousel-control-next-icon {
    filter: invert(1) drop-shadow(0 0 8px rgba(0, 210, 255, 0.45));
    width: 2.75rem;
    height: 2.75rem;
    background-size: 2.75rem 2.75rem;
}

.login-present-indicators {
    margin-bottom: 0.5rem;
    gap: 6px;
}

.login-present-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.35);
}

.login-present-indicators [data-bs-target].active {
    background-color: #00d2ff;
    opacity: 1;
}

.login-present-footer {
    background: rgba(0, 0, 0, 0.25);
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 576px) {
    .login-present-slide-img {
        max-height: calc(100vh - 280px);
    }

    .login-present-control {
        width: 12%;
    }
}

/* Options Row */
.form-options {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 30px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Button */
.btn-login {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    font-family: var(--font-tech);
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.1), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-login:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
    transform: translateY(-2px);
}

.btn-login:active {
    transform: translateY(1px);
}

[data-theme="light"] .btn-login {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

[data-theme="light"] .btn-login:hover {
    background: var(--neon-blue);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 119, 182, 0.4);
}

[data-theme="light"] .forgot-password {
    color: var(--neon-blue);
}

[data-theme="light"] .forgot-password:hover {
    color: var(--neon-purple);
}

/* Footer Links */
.footer-links {
    margin-top: 25px;
    text-align: center;
    font-size: 13px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--neon-blue);
}

.separator {
    color: rgba(255, 255, 255, 0.1);
    margin: 0 8px;
}

/* Tech Grid Lines Background */
.tech-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.line {
    position: absolute;
    background: rgba(0, 210, 255, 0.05);
}

[data-theme="light"] .line {
    background: rgba(0, 119, 182, 0.08);
}

.line-1 {
    width: 1px;
    height: 100%;
    left: 20%;
}

.line-2 {
    width: 1px;
    height: 100%;
    right: 20%;
}

.line-3 {
    height: 1px;
    width: 100%;
    top: 30%;
}

/* Placeholder color */
::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .form-control-custom::placeholder {
    color: rgba(0, 0, 0, 0.4);
}