/* Login page - Kokpit theme (extracted from eski login design) */

body:has(.login-fullpage) {
    margin: 0;
    padding: 0;
}

main:has(.login-fullpage) {
    background: linear-gradient(135deg, #051626 0%, #0a1f35 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

main:has(.login-fullpage) .alert {
    background-color: rgba(20, 30, 40, 0.9);
    border: 1px solid rgba(192, 192, 192, 0.3);
    color: #e0e0e0;
    margin: 1rem;
}

main:has(.login-fullpage) .alert-danger {
    border-color: rgba(255, 0, 0, 0.4);
    background-color: rgba(40, 20, 20, 0.9);
}

main:has(.login-fullpage) .alert-success {
    border-color: rgba(0, 255, 0, 0.4);
    background-color: rgba(20, 40, 20, 0.9);
}

:root {
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --kokpit-navy: #051626;
    --kokpit-dark: #0a1f35;
    --metallic-silver: #c0c0c0;
    --neon-cyan: #00ffff;
    --glass-bg: rgba(30, 40, 50, 0.7);
    --text-silver: #e0e0e0;
    --text-white: #ffffff;
}

.login-fullpage {
    font-family: var(--font-primary);
    margin: 0;
    overflow-x: hidden;
    background-color: var(--kokpit-navy);
    background: linear-gradient(135deg, var(--kokpit-navy) 0%, var(--kokpit-dark) 100%);
    min-height: 100vh;
    position: relative;
}

.login-fullpage::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.login-split-screen {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.login-left-pane {
    flex: 0 0 60%;
    position: relative;
    background: var(--kokpit-navy);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-white);
    padding: 3rem;
    overflow: hidden;
}

.login-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-logo {
    width: 80%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.3));
    animation: loginFadeInDown 1s ease-out;
    margin-bottom: 2rem;
}

.login-logo-text {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.login-hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-silver);
    text-align: center;
    line-height: 1.8;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: loginFadeInUp 1s ease-out 0.5s backwards;
    letter-spacing: 0.5px;
}

.login-hero-tagline .highlight {
    color: var(--neon-cyan);
    font-weight: 500;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.login-right-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 4rem;
    background: transparent;
    position: relative;
    z-index: 1;
}

.login-form-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(192, 192, 192, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.login-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.login-header h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-silver);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.login-header p {
    color: var(--metallic-silver);
    font-size: 0.95rem;
    opacity: 0.9;
}

.login-input-with-icon {
    position: relative;
    margin-bottom: 1.5rem;
}

.login-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--metallic-silver);
    opacity: 0.6;
    z-index: 2;
    pointer-events: none;
}

.login-form-container .form-control {
    border-radius: 12px;
    border: 1px solid rgba(192, 192, 192, 0.3);
    background-color: rgba(20, 30, 40, 0.6);
    color: var(--text-white);
    padding: 0.875rem 1rem 0.875rem 3rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.login-form-container .form-control:focus {
    border-color: var(--neon-cyan);
    background-color: rgba(20, 30, 40, 0.8);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.2), 0 0 15px rgba(0, 255, 255, 0.3);
    color: var(--text-white);
    outline: none;
}

.login-form-container .form-control::placeholder {
    color: rgba(192, 192, 192, 0.5);
    opacity: 1;
}

.login-btn-submit {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(160, 160, 160, 0.15));
    border: 1px solid rgba(192, 192, 192, 0.4);
    border-radius: 12px;
    padding: 1rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: var(--text-silver);
    width: 100%;
    margin-top: 1.5rem;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.login-btn-submit:hover {
    transform: translateY(-2px);
    border-color: var(--neon-cyan);
    color: var(--text-white);
    box-shadow:
        0 8px 25px rgba(0, 255, 255, 0.4),
        0 0 30px rgba(0, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.login-btn-submit:hover::before {
    left: 100%;
}

.login-btn-submit:active {
    transform: translateY(0);
}

.login-alert-custom {
    border: 1px solid rgba(192, 192, 192, 0.3);
    border-radius: 10px;
    background-color: rgba(20, 30, 40, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    color: var(--text-silver);
}

.login-alert-danger {
    border-color: rgba(255, 0, 0, 0.4);
    background-color: rgba(40, 20, 20, 0.8);
}

.login-alert-success {
    border-color: rgba(0, 255, 0, 0.4);
    background-color: rgba(20, 40, 20, 0.8);
}

.login-form-container .alert-dismissible .btn-close {
    padding: 1.25rem;
    filter: invert(1);
    opacity: 0.7;
}

.login-form-container .alert-dismissible .btn-close:hover {
    opacity: 1;
}

.login-footer-copyright {
    margin-top: auto;
    text-align: center;
    font-size: 0.85rem;
    color: var(--metallic-silver);
    opacity: 0.7;
    padding-top: 2rem;
}

@keyframes loginFadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes loginFadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .login-logo {
        width: 70%;
        max-width: 300px;
    }
    .login-logo-text {
        font-size: 2rem;
    }
    .login-hero-tagline {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
}

@media (max-width: 992px) {
    .login-split-screen {
        flex-direction: column;
    }
    .login-left-pane {
        flex: none;
        height: 30vh;
        padding: 1.5rem;
        background: var(--kokpit-navy);
    }
    .login-logo {
        width: 60%;
        max-width: 250px;
    }
    .login-logo-text {
        font-size: 1.75rem;
    }
    .login-right-pane {
        flex: 1;
        padding: 2rem 1.5rem;
        justify-content: flex-start;
    }
    .login-form-container {
        margin-top: 1rem;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .login-logo {
        width: 70%;
        max-width: 200px;
    }
    .login-form-container {
        padding: 1.5rem 1rem;
    }
}
