/* ═══════════════════════════════════════
   Maasore Trinity — Login Page Styles
   ═══════════════════════════════════════ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f3f6f9;
    overflow-x: hidden;
}

/* ───────── HERO SECTION ───────── */
.login-hero {
    position: relative;
    width: 100%;
    min-height: 42vh;
    background: linear-gradient(180deg, rgba(10, 25, 47, 0.25) 0%, rgba(10, 25, 47, 0.55) 100%), url('../../img/compliance-banner.png') center center / cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 44px 20px 100px;
    overflow: hidden;
}

/* subtle depth overlay */
.login-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, transparent 20%, rgba(10, 25, 47, 0.35) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeSlideDown 0.7s ease-out both;
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.brand-logo {
    font-size: 44px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -1.5px;
    line-height: 1;
    margin-bottom: 8px;
}

.brand-logo span {
    font-weight: 300;
}

.brand-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    letter-spacing: 0.4px;
}

/* Wave cut at the bottom of the hero */
.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 70px;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ───────── FORM CARD ───────── */
.login-card-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -90px;
    display: flex;
    justify-content: center;
    padding: 0 20px 60px;
}

.login-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.12);
    padding: 36px 40px 40px;
    width: 100%;
    max-width: 440px;
    animation: fadeSlideUp 0.65s ease-out 0.15s both;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ───────── FORM TITLE ───────── */
.form-title {
    text-align: center;
    margin-bottom: 28px;
}

.form-title h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1f36;
    margin-bottom: 6px;
}

.form-title p {
    font-size: 13.5px;
    color: #4a5fc1;
    font-weight: 400;
}

/* ───────── FORM ELEMENTS ───────── */
.form-group {
    margin-bottom: 18px;
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
}

.form-label .required {
    color: #ef4444;
    margin-left: 2px;
}

.forgot-link {
    font-size: 12.5px;
    color: #4a5fc1;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #1abc9c;
}

/* input wrapper for password eye toggle */
.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e9f2;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #2c3e50;
    background: #fff;
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
}

.form-input::placeholder {
    color: #b0bac8;
}

.form-input:focus {
    border-color: #4a5fc1;
    box-shadow: 0 0 0 3px rgba(74, 95, 193, 0.1);
}

.form-input.is-invalid {
    border-color: #ef4444;
}

.form-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* Password eye button */
.eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #9ca3af;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.eye-btn:hover { color: #4a5fc1; }

/* Error text */
.form-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
}

/* ───────── ALERT ───────── */
.alert {
    padding: 11px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 13px;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ───────── REMEMBER ME ───────── */
.remember-row {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
}

.remember-row input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: #4a5fc1;
    margin: 0;
    flex-shrink: 0;
}

.remember-row label {
    margin-left: 8px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    user-select: none;
}

/* ───────── SIGN IN BUTTON ───────── */
.btn-signin {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #3577f1 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.4px;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-signin:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.btn-signin:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ───────── FOOTER LINK ───────── */
.signup-row {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: #6b7280;
}

.signup-row a {
    color: #4a5fc1;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.signup-row a:hover { color: #1abc9c; }

/* ───────── PAGE BASE FILLER ───────── */
.login-base {
    flex: 1;
    background: #f3f6f9;
}

/* ───────── RESPONSIVE ───────── */
@media (max-width: 480px) {
    .login-hero {
        padding: 36px 16px 100px;
    }

    .brand-logo { font-size: 34px; }

    .login-card {
        padding: 28px 22px 32px;
    }
}
