/*
 * ACT Student Portal — auth page branding overrides
 * Loaded after dashlite.css on login.php and forget.php only.
 */

:root {
    --act-primary: #0a2e63;
    --act-primary-hover: #072247;
    --act-primary-active: #05192f;
}

/* ---------------------------------------------------------------
   Logo
   The theme only caps height (max-height), so a cap alone cannot
   enlarge anything. Set an explicit height so the logo actually
   scales to 3x the theme's original 100px.
   --------------------------------------------------------------- */
.pg-auth .brand-logo .logo-link {
    display: inline-block;
}

.pg-auth .brand-logo .logo-img,
.pg-auth .brand-logo .logo-img-lg {
    height: 150px;
    max-height: 150px;
    width: auto;
    /* Undo the theme's absolute positioning so the logo occupies
       real layout space instead of overlapping the card below. */
    position: static;
    transform: none;
}

@media (max-width: 575.98px) {
    .pg-auth .brand-logo .logo-img,
    .pg-auth .brand-logo .logo-img-lg {
        height: 180px;
        max-height: 180px;
    }
}

/* ---------------------------------------------------------------
   Primary button
   --------------------------------------------------------------- */
.pg-auth .btn-primary {
    background-color: var(--act-primary);
    border-color: var(--act-primary);
    color: #fff;
}

.pg-auth .btn-primary:hover,
.pg-auth .btn-primary:focus,
.pg-auth .btn-primary.focus {
    background-color: var(--act-primary-hover);
    border-color: var(--act-primary-hover);
    color: #fff;
}

.pg-auth .btn-primary:focus,
.pg-auth .btn-primary.focus,
.pg-auth .btn-primary:not(:disabled):not(.disabled):active:focus {
    box-shadow: 0 0 0 0.2rem rgba(10, 46, 99, 0.3);
}

.pg-auth .btn-primary:not(:disabled):not(.disabled):active,
.pg-auth .btn-primary:not(:disabled):not(.disabled).active {
    background-color: var(--act-primary-active);
    border-color: var(--act-primary-active);
    color: #fff;
}

.pg-auth .btn-primary.disabled,
.pg-auth .btn-primary:disabled {
    background-color: var(--act-primary);
    border-color: var(--act-primary);
    opacity: .6;
}

/* ---------------------------------------------------------------
   Links & headings
   --------------------------------------------------------------- */
/* dashlite.css declares `.link-primary { color: #6576ff !important }`,
   so !important is required here to override it. */
.pg-auth .link-primary,
.pg-auth a.link-primary {
    color: var(--act-primary) !important;
}

.pg-auth .link-primary:hover,
.pg-auth a.link-primary:hover {
    color: var(--act-primary-hover) !important;
    text-decoration: underline;
}

.pg-auth .nk-block-title {
    color: var(--act-primary);
}

/* ---------------------------------------------------------------
   Form controls
   --------------------------------------------------------------- */
.pg-auth .form-control:focus {
    border-color: var(--act-primary);
    box-shadow: 0 0 0 0.15rem rgba(10, 46, 99, 0.15);
}

.pg-auth .form-label {
    color: var(--act-primary);
}

.pg-auth .form-icon .passcode-icon:hover {
    color: var(--act-primary);
}

/* ---------------------------------------------------------------
   Info alert tinted to brand
   --------------------------------------------------------------- */
.pg-auth .alert-info {
    background-color: rgba(10, 46, 99, 0.08);
    border-color: rgba(10, 46, 99, 0.2);
    color: var(--act-primary);
}

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.pg-auth .nk-auth-footer-full {
    border-top: 1px solid rgba(10, 46, 99, 0.12);
}

.pg-auth .nk-auth-footer-full .nav-link {
    color: var(--act-primary);
    font-weight: 500;
}

.pg-auth .nk-auth-footer-full .nav-link:hover,
.pg-auth .nk-auth-footer-full .nav-link:focus {
    color: var(--act-primary-hover);
    text-decoration: underline;
}

.pg-auth .nk-auth-footer-full .nk-block-content .text-soft a {
    color: var(--act-primary);
}

.pg-auth .nk-auth-footer-full .nk-block-content .text-soft a:hover {
    color: var(--act-primary-hover);
    text-decoration: underline;
}
