/* BISOPS360 login — dark card layout, mobile-first */

.login-page {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0b0e14;
    background-image:
        radial-gradient(ellipse 80% 60% at 85% 20%, rgba(59, 130, 246, 0.18), transparent 55%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: auto, 32px 32px, 32px 32px;
    color: #e5e7eb;
    box-sizing: border-box;
    overflow-x: hidden;
}

.login-bg-logo {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-bg-logo::before {
    content: "BISO";
    font-family: Georgia, "Rockwell Extra Bold", "Courier New", serif;
    font-size: clamp(7.5rem, 30vw, 15rem);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-indent: 0.14em;
    line-height: 1;
    color: rgba(210, 35, 42, 0.11);
    text-transform: uppercase;
    user-select: none;
    transform: translateY(-4%);
}

.login-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 50% 45%, rgba(11, 14, 20, 0.35), rgba(11, 14, 20, 0.92) 72%),
        linear-gradient(180deg, rgba(11, 14, 20, 0.55) 0%, rgba(11, 14, 20, 0.25) 40%, rgba(11, 14, 20, 0.75) 100%);
}

.login-page *,
.login-page *::before,
.login-page *::after {
    box-sizing: border-box;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: rgba(28, 34, 45, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 24px 24px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.login-brand-logo-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    padding: 6px;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.login-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.login-brand-text h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.login-brand-text p {
    margin: 2px 0 0;
    font-size: 0.72rem;
    color: #9ca3af;
    line-height: 1.3;
}

.login-welcome h2 {
    margin: 0 0 6px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.login-welcome p {
    margin: 0 0 20px;
    font-size: 0.875rem;
    color: #9ca3af;
}

.login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 22px;
    padding: 4px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.login-tab {
    border: 1px solid transparent;
    background: transparent;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    min-height: 44px;
}

.login-tab:hover {
    color: #e5e7eb;
}

.login-tab.active {
    background: rgba(30, 41, 59, 0.9);
    color: #fff;
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.login-panel {
    display: none;
}

.login-panel.active {
    display: block;
}

.login-field {
    margin-bottom: 16px;
}

.login-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #9ca3af;
}

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    font-size: 0.95rem;
    color: #6b7280;
    pointer-events: none;
    line-height: 1;
}

.login-input-wrap input {
    width: 100%;
    min-height: 48px;
    padding: 12px 44px 12px 42px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.login-input-wrap input::placeholder {
    color: #6b7280;
}

.login-input-wrap input:focus {
    border-color: rgba(59, 130, 246, 0.65);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.login-input-wrap input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.login-toggle-pw {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-toggle-pw:hover {
    color: #e5e7eb;
}

.login-hint {
    margin-top: 6px;
    font-size: 0.75rem;
    color: #6b7280;
}

.login-msg {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.login-msg-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.login-msg-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
}

.login-msg-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fcd34d;
}

.login-msg-info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93c5fd;
}

.login-btn-primary {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    border: none;
    border-radius: 10px;
    background: #3b82f6;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.login-btn-primary:hover:not(:disabled) {
    background: #2563eb;
}

.login-btn-primary:active:not(:disabled) {
    transform: scale(0.99);
}

.login-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.login-btn-secondary {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    border: 1px solid rgba(59, 130, 246, 0.45);
    border-radius: 10px;
    background: transparent;
    color: #93c5fd;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.login-btn-secondary:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.1);
}

.login-btn-secondary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.login-footer {
    margin-top: 22px;
    text-align: center;
    font-size: 0.72rem;
    color: #6b7280;
    line-height: 1.5;
}

@media (max-width: 380px) {
    .login-bg-logo::before {
        font-size: clamp(5.5rem, 34vw, 8rem);
        letter-spacing: 0.1em;
        text-indent: 0.1em;
        color: rgba(210, 35, 42, 0.09);
    }

    .login-card {
        padding: 22px 18px 20px;
    }

    .login-tab {
        font-size: 0.8rem;
        padding: 10px 8px;
    }
}
