﻿/* Base ------------------------------------------------------------------ */
body {
    background-color: #212121; /* already set, kept for certainty */
    color: #e0e0e0;
}

/****************************
 * Layout
 ****************************/
.login-wrap {
    min-height: 100vh; /* full viewport height */
    display: flex; /* vertical centering */
    align-items: center; /* center vertically */
}

/****************************
 * Card
 ****************************/
.login-card {
    background: #2b2b2b; /* dark card */
    color: #e0e0e0; /* light text */
    border: 1px solid #333; /* subtle edge */
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.25);
}

    .login-card .card-body {
        padding: 2.25rem 2rem;
    }

.login-title {
    font-weight: 600;
    font-size: 1.7rem;
    margin-bottom: 1.75rem;
    color: #fafafa;
}

/* Logo on login */
.login-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 12px;
}

/****************************
 * Inputs
 ****************************/
.input-group-alternative {
    border: 0;
    box-shadow: none; /* remove light-theme shadow */
}

.input-group-text {
    background: #303030;
    border: 1px solid #3a3a3a;
    height: 100%;
    color: #bdbdbd;
    border-right: 0; /* merge with input */
}

    .input-group-text img {
        width: 18px;
        height: 18px;
        opacity: .85;
        filter: invert(1) contrast(.85); /* make light on dark */
    }

.form-control {
    background: #1f1f1f;
    border: 1px solid #3a3a3a;
    color: #e0e0e0;
}

    .form-control::placeholder {
        color: #9e9e9e;
    }

    .form-control:focus {
        background: #1f1f1f;
        border-color: #64b5f6; /* accent */
        color: #ffffff;
        outline: 0;
        box-shadow: 0 0 0 .25rem rgba(100,181,246,.18);
    }

/* join input-group border nicely */
.input-group > .form-control {
    border-left: 0;
}

/****************************
 * Buttons
 ****************************/
.btn-primary {
    background-color: #64b5f6;
    border-color: #64b5f6;
    color: #0b0b0b;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: #42a5f5;
        border-color: #42a5f5;
        color: #0b0b0b;
    }

    .btn-primary:active {
        background-color: #2196f3;
        border-color: #2196f3;
    }

/****************************
 * Validation / alerts
 ****************************/
.invalid-feedback {
    display: block; /* you already force this */
    color: #ef5350; /* readable on dark */
}

.alert-danger {
    background: #2a1214;
    color: #ff8a80;
    border-color: rgba(183,28,28,.4);
}

/****************************
 * Small polish
 ****************************/
.text-muted {
    color: #bdbdbd !important;
}

hr.login-divider {
    border: 0;
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, transparent, #3a3a3a, transparent);
    margin: 1.5rem 0 1.25rem;
}

/* Remove default bootstrap close button light look in alerts on dark */
.alert .close span {
    color: #ff8a80;
}
