/* Login pages (auth/studentLogin.blade.php, auth/login.blade.php)
   Re-uses the palette and components defined in landing.css */

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-alt);
}

/* ---------- Header (same look as the welcome page navigation) ---------- */
.auth-page .site-nav {
    position: relative;
}

.auth-page .nav-actions {
    margin-left: 0;
    align-items: center;
}

/* ---------- Hero area ---------- */
.auth-hero {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    color: #fff;
    background: linear-gradient(110deg, rgba(10, 51, 25, .95) 0%, rgba(15, 77, 37, .88) 45%, rgba(27, 122, 61, .55) 100%),
        url("../../assets/images/car1.jpg") center / cover no-repeat;
    padding: 56px 0;
}

.auth-intro h1 {
    color: #fff;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 18px;
}

.auth-intro h1 span {
    color: var(--gold);
}

.auth-intro .lead {
    font-size: 17px;
    color: rgba(255, 255, 255, .88);
    max-width: 520px;
    margin-bottom: 28px;
}

.auth-facts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-facts li {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, .92);
    font-weight: 600;
}

.auth-facts .fact-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    color: var(--gold);
    font-size: 17px;
}

/* ---------- Card ---------- */
.auth-card {
    background: rgba(255, 255, 255, .97);
    color: var(--ink);
    border-radius: 16px;
    padding: 36px 34px 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    border-top: 4px solid var(--gold);
}

.auth-card-head {
    text-align: center;
    margin-bottom: 26px;
}

.auth-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 0 0 6px rgba(27, 122, 61, .08);
}

.auth-card-head h2 {
    font-size: 24px;
    margin-bottom: 6px;
}

.auth-card-head p {
    color: var(--muted);
    margin: 0;
    font-size: 14px;
}

.auth-card .form-group {
    margin-bottom: 20px;
}

.auth-card label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.input-icon {
    position: relative;
}

.input-icon > .fa {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 16px;
    pointer-events: none;
}

.auth-card .form-control {
    height: auto;
    padding: 12px 14px 12px 42px;
    border-radius: 8px;
    border: 1px solid #d5ddd8;
    background: #fff;
    font-size: 15px;
    transition: border-color .15s, box-shadow .15s;
}

.auth-card .form-control:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(27, 122, 61, .15);
}

.auth-card .form-control.is-invalid {
    border-color: #d93025;
    background-image: none;
}

.auth-card .input-icon:focus-within > .fa {
    color: var(--green);
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 8px 10px;
    cursor: pointer;
    line-height: 1;
}

.toggle-password:hover,
.toggle-password:focus {
    color: var(--green);
    outline: none;
}

.auth-card .has-toggle .form-control {
    padding-right: 44px;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 14px;
}

.auth-options .custom-control-label {
    font-weight: 500;
    margin: 0;
    cursor: pointer;
}

.auth-options .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--green);
    border-color: var(--green);
}

.auth-options .custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 3px rgba(27, 122, 61, .2);
}

.auth-options a {
    font-weight: 600;
}

.btn-auth {
    width: 100%;
    justify-content: center;
    padding: 13px 24px;
    cursor: pointer;
}

.auth-alt {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.auth-alt a {
    font-weight: 700;
}

.auth-card .alert {
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    padding: 10px 16px !important;
}

.auth-card .alert-danger {
    background: #fdecea;
    color: #a61b12;
    border-left: 4px solid #d93025;
}

.auth-card .alert-success {
    background: var(--green-soft);
    color: var(--green-dark);
    border-left: 4px solid var(--green);
}

.auth-card .alert-info {
    border-left: 4px solid #17a2b8;
}

/* ---------- Footer ---------- */
.auth-footer {
    background: var(--green-deep);
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
    padding: 16px 0;
}

.auth-footer a {
    color: var(--gold);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .auth-hero {
        padding: 36px 0;
    }
}

@media (max-width: 575px) {
    .auth-card {
        padding: 28px 20px 24px;
    }

    .auth-page .brand-name {
        font-size: 16px;
    }

    .auth-page .brand-sub {
        display: none;
    }

    .auth-footer .container {
        text-align: center;
    }
}

/* ---------- Registration steps ---------- */
.auth-steps {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    counter-reset: none;
}

.auth-steps li {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

/* connector line between steps */
.auth-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 14px;
    left: calc(50% + 18px);
    width: calc(100% - 36px);
    border-top: 2px solid var(--line);
}

.auth-steps li.done:not(:last-child)::after {
    border-top-color: var(--green);
}

.auth-steps .num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    background: var(--bg-alt);
    border: 2px solid var(--line);
    color: var(--muted);
}

.auth-steps li.current .num {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    box-shadow: 0 0 0 4px var(--green-soft);
}

.auth-steps li.done .num {
    background: var(--green-soft);
    border-color: var(--green);
    color: var(--green);
}

.auth-steps li.current .txt {
    color: var(--ink);
    font-weight: 700;
}

/* ---------- Matric check ---------- */
.input-group-check {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.btn-check-matric {
    flex: 0 0 auto;
    border: 0;
    border-radius: 8px;
    padding: 0 16px;
    background: var(--gold);
    color: var(--green-deep);
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}

.btn-check-matric:hover {
    background: #ffc928;
}

.btn-check-matric:disabled {
    opacity: .7;
    cursor: wait;
}

.record-found {
    background: var(--green-soft);
    border: 1px solid #cfe5d7;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.record-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--green);
}

.record-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--ink);
    padding: 2px 0 0;
}

.record-found .custom-control-label {
    font-size: 13px;
    color: var(--ink);
}

.code-input {
    letter-spacing: .25em;
    font-weight: 700;
    font-size: 18px;
}

.code-input::placeholder {
    letter-spacing: normal;
    font-weight: 400;
    font-size: 14px;
}
