/* Login – Centered layout, strip card, pills, blue theme */
.login-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(165deg, #0a1628 0%, #0f2744 40%, #132f52 100%);
    position: relative;
    overflow-x: hidden;
}

.login-wrap * {
    box-sizing: border-box;
}

/* Background pattern + glow */
.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.login-bg-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(59, 130, 246, 0.12) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 70%);
}

.login-bg-glow {
    position: absolute;
    width: 120%;
    height: 80%;
    top: -20%;
    left: -10%;
    background: radial-gradient(ellipse at 50% 30%, rgba(37, 99, 235, 0.18) 0%, transparent 55%);
}

/* Main content – centered column */
.login-main {
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem 4rem;
}

/* Hero: logo + title */
.login-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.login-hero-logo {
    width: 100px;
    height: auto;
    border-radius: 16px;
    object-fit: contain;
    margin-bottom: 1rem;
    padding: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.login-hero-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0 0 0.35rem 0;
}

.login-hero-sub {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0;
}

/* Card: left accent strip + white body */
.login-card {
    width: 100%;
    max-width: 400px;
    position: relative;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    overflow: hidden;
}

.login-card-strip {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #2563eb 0%, #0ea5e9 100%);
}

.login-card-inner {
    padding: 2rem 2rem 2rem 1.75rem;
}

.login-card-head {
    margin-bottom: 1.5rem;
}

.login-card-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    margin-bottom: 0.6rem;
}

.login-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem 0;
}

.login-card-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Flash messages */
.login-flash {
    margin-bottom: 1.25rem;
}

.login-alert {
    padding: 0.65rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
}

.login-alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.login-alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.login-alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.login-field {
    margin-bottom: 1.1rem;
}

.login-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.4rem;
}

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

.login-input-icon {
    position: absolute;
    left: 14px;
    color: #64748b;
    font-size: 0.9rem;
    pointer-events: none;
}

.login-input {
    width: 100%;
    padding: 0.85rem 2.75rem 0.85rem 2.75rem;
    font-size: 0.95rem;
    color: #0f172a;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.login-input::placeholder {
    color: #94a3b8;
}

.login-input:focus {
    outline: none;
    background: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.login-toggle-pw {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 4px;
}

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

.login-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.35rem;
    font-size: 0.85rem;
}

.login-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    color: #475569;
}

.login-check input {
    position: absolute;
    opacity: 0;
}

.login-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: #e2e8f0;
    border: 2px solid #cbd5e1;
    transition: all 0.2s;
    flex-shrink: 0;
    position: relative;
}

.login-check input:checked + .login-checkbox {
    background: #2563eb;
    border-color: #2563eb;
}

.login-check input:checked + .login-checkbox::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.login-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.login-link:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

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

/* Feature pills – horizontal row */
.login-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.login-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #e2e8f0;
    background: rgba(30, 58, 95, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 9999px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.login-pill i {
    color: #60a5fa;
    font-size: 0.85rem;
}

.login-pill:hover {
    background: rgba(30, 58, 95, 0.85);
    border-color: rgba(59, 130, 246, 0.45);
    transform: translateY(-2px);
}

/* Contact line */
.login-contact {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.login-contact span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.login-contact i {
    color: #60a5fa;
}

.login-contact-addr {
    max-width: 280px;
    line-height: 1.35;
}

/* Footer */
.login-foot {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1rem 1.5rem;
    background: rgba(10, 22, 40, 0.9);
    border-top: 1px solid rgba(59, 130, 246, 0.12);
}

.login-foot p {
    margin: 0.2rem 0;
    font-size: 0.78rem;
    color: #94a3b8;
}

.login-foot a {
    color: #60a5fa;
    text-decoration: none;
}

.login-foot a:hover {
    text-decoration: underline;
    color: #93c5fd;
}

.login-foot-sep {
    margin: 0 0.4rem;
    color: #64748b;
}

.login-dev {
    color: #93c5fd;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 480px) {
    .login-main {
        padding: 1.5rem 1rem 3rem;
    }

    .login-hero-title {
        font-size: 1.35rem;
    }

    .login-card-inner {
        padding: 1.5rem 1.25rem 1.5rem 1.5rem;
    }

    .login-card-strip {
        width: 5px;
    }

    .login-pills {
        margin-top: 1.5rem;
        gap: 0.5rem;
    }

    .login-pill {
        padding: 0.4rem 0.85rem;
        font-size: 0.75rem;
    }
}
