/* =========================================
   LUKUL ATELIER B2B SAAS: LOGIN TERMINAL
   ========================================= */
:root {
    --bg-dark-grad: linear-gradient(135deg, #022c22 0%, #011812 100%);
    --tenant-primary-color: #e6b34a;
    --tenant-primary-gradient: linear-gradient(135deg, #f5d17e 0%, #e6b34a 50%, #b38728 100%);
    --text-dark: #e0e0e0;
    --font-primary: 'Manrope', sans-serif;
    --font-heading: 'Cinzel', serif;
}

body {
    background: var(--bg-dark-grad) !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-family: var(--font-primary) !important;
    color: var(--text-dark) !important;
    padding: 20px;
}

/* --- THE LOGIN TERMINAL --- */
.login-wrapper {
    width: 100%;
    max-width: 480px;
    background: rgba(1, 24, 18, 0.6) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(230, 179, 74, 0.2) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8) !important;
    border-radius: 12px !important;
    overflow: hidden;
    position: relative;
    padding: 60px 40px;
    text-align: center;
    animation: slideUp 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.login-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--tenant-primary-gradient);
}

.login-logo {
    width: 320px;
    max-width: 100%;
    height: auto;
    margin-bottom: 25px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.login-title {
    font-family: var(--font-heading) !important;
    font-size: 2rem;
    color: var(--tenant-primary-color) !important;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.login-subtitle {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 40px;
    line-height: 1.5;
}

/* --- INPUTS --- */
.input-group {
    margin-bottom: 25px;
    text-align: center;
}

.input-group label {
    display: inline-block;
    width: 100%;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
    max-width: 400px;
}

.infinity-input {
    width: 100%;
    max-width: 400px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--tenant-primary-color) !important;
    font-family: 'Space Mono', 'Manrope', monospace !important;
    border-radius: 6px !important;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.infinity-input:focus {
    border-color: var(--tenant-primary-color) !important;
    box-shadow: 0 0 15px rgba(230, 179, 74, 0.2) !important;
}

/* --- BUTTONS --- */
.submit-btn {
    width: 100%;
    max-width: 400px;
    padding: 18px;
    background: var(--tenant-primary-gradient) !important;
    color: #010a08 !important;
    border: none !important;
    border-radius: 6px !important;
    font-family: 'Oswald', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.1rem;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    margin-top: 20px;
    box-shadow: 0 10px 20px rgba(184, 150, 67, 0.15);
}

.submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 30px rgba(230, 179, 74, 0.3) !important;
}

/* --- LINKS --- */
.links {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.links a {
    color: #888;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 600;
    font-family: var(--font-primary);
}

.links a:hover {
    color: var(--tenant-primary-color);
}

.back-link {
    font-family: var(--font-heading) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#error-msg {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    border-left: 3px solid #ef4444;
    display: none;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Space Mono', monospace;
}

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

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

/* =========================================
   THE MIDNIGHT EMERALD MODAL
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 10, 8, 0.85) !important;
    /* Obsidian Overlay */
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-box {
    background: rgba(1, 24, 18, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(230, 179, 74, 0.3) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9) !important;
    padding: 40px;
    border-radius: 12px !important;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.modal-title {
    font-family: var(--font-heading) !important;
    color: var(--tenant-primary-color) !important;
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-text {
    font-family: var(--font-primary) !important;
    color: #aaa !important;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-btn {
    background: var(--tenant-primary-gradient) !important;
    color: #010a08 !important;
    border: none !important;
    padding: 12px 30px;
    border-radius: 6px !important;
    font-family: 'Oswald', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 1px;
    transition: 0.3s;
    width: 100%;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 150, 67, 0.3);
}

/* Responsive */
@media (max-width: 500px) {
    .login-wrapper {
        padding: 40px 20px;
    }

    .login-title {
        font-size: 1.8rem;
    }

    .links {
        flex-direction: column;
        gap: 15px;
    }

    .login-logo {
        width: 260px;
    }
}