/* assets/css/login.css
 * Login page–specific styling. Layers on top of portal.css.
 */

/* Full-height centered layout for auth pages */
body.kmd-portal-auth-body {
    background: radial-gradient(circle at top, #dbeafe 0, #eff6ff 40%, #e5e7eb 100%);
}

/* Center everything vertically */
.kmd-auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

/* Shell that holds logo + card */
.kmd-auth-shell {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo ABOVE the card */
.kmd-auth-logo-outer {
    margin-bottom: 18px;
}

/* Hard cap on logo size so it never yells */
.kmd-auth-logo-img {
    display: block;
    max-width: 180px !important;   /* hard upper bound */
    width: 100%;
    height: auto;
    opacity: 0.96;
}

/* Card is narrower than the screen */
.kmd-auth-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 26px 26px 20px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow:
        0 22px 60px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(15, 23, 42, 0.02);
    backdrop-filter: blur(14px);
}

.kmd-auth-header h1 {
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.kmd-auth-header p {
    font-size: 0.92rem;
    color: #6b7280;
}

/* Inputs */

.kmd-input.form-control {
    border-radius: 10px;
    border-color: rgba(148, 163, 184, 0.7);
    font-size: 0.95rem;
    padding: 0.55rem 0.75rem;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}

.kmd-input.form-control:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.45);
    background-color: #f9fafb;
}

/* Disabled-looking forgot link */
.kmd-forgot-link.disabled-link {
    color: #9ca3af;
    cursor: default;
    text-decoration: none;
}

/* Button */

.kmd-btn-primary {
    border-radius: 999px;
    font-weight: 600;
    border: none;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.4);
    color: #fff;
    transition:
        transform 0.06s ease-out,
        box-shadow 0.12s ease-out,
        background 0.12s ease-out;
}

.kmd-btn-primary:hover,
.kmd-btn-primary:focus {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.55);
    transform: translateY(-1px);
    color: #fff;
}

.kmd-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.35);
}

/* Status area */

.kmd-auth-status {
    font-size: 0.86rem;
}

/* Footer */

.kmd-auth-footer {
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    padding-top: 16px;
}

/* Responsive tweaks */

@media (max-width: 575.98px) {
    .kmd-auth-card {
        padding: 22px 18px 20px;
        border-radius: 16px;
        max-width: 100%;
    }

    .kmd-auth-section {
        padding: 24px 12px;
    }

    .kmd-auth-logo-img {
        max-width: 150px !important;
    }
}
