/*
 * Staff Portal login: small changes on top of tatu-theme.css so the portal's
 * sign-in page is easy to tell apart from the HR system's (same colours and photo).
 * Every rule here only applies to <body class="portal-login">.
 */

/* Background tint: runs the other way from HR's, with a soft gold glow in the bottom corner */
.portal-login.login-page::after {
    background:
        radial-gradient(circle at 15% 90%, rgba(216, 202, 53, 0.35) 0%, rgba(216, 202, 53, 0) 45%),
        linear-gradient(225deg, rgba(14, 63, 34, 0.85) 0%, rgba(31, 122, 67, 0.50) 60%, rgba(14, 63, 34, 0.85) 100%);
}

/* Crest beside the university name, instead of above it */
.portal-login .login-logo {
    flex-direction: row;
    justify-content: center;
    text-align: left;
}

.portal-login .login-logo img {
    width: 64px;
    margin-bottom: 0;
    margin-right: 12px;
}

.portal-login .login-logo .portal-name {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

/* The gold "STAFF PORTAL" badge under the name */
.portal-login .portal-badge {
    display: inline-block;
    align-self: flex-start;
    margin-top: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    background-color: var(--kstu-accent);
    color: var(--kstu-primary-darker);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* The card: one gold edge on top instead of HR's three-colour stripe, rounder corners */
.portal-login .login-box .card {
    border-radius: 12px;
    overflow: hidden;
    border-top: 5px solid var(--kstu-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.30);
}

.portal-login .login-card-body::before {
    display: none;
}

.portal-login .login-card-body {
    padding: 24px 26px;
}

/* "Welcome back" greeting at the top of the card */
.portal-login .portal-welcome {
    text-align: center;
    margin-bottom: 18px;
}

.portal-login .portal-welcome h4 {
    color: var(--kstu-primary-dark);
    font-weight: 700;
    margin-bottom: 2px;
}

.portal-login .portal-welcome p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Field icons on the left, in the theme green */
.portal-login .input-group-prepend .input-group-text {
    background-color: var(--kstu-bg-soft);
    color: var(--kstu-primary);
    width: 42px;
    justify-content: center;
}

/* Gold "Sign in" button with dark green writing */
.portal-login .btn-portal {
    background-color: var(--kstu-accent);
    border-color: var(--kstu-accent);
    color: var(--kstu-primary-darker);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.portal-login .btn-portal:hover,
.portal-login .btn-portal:focus {
    background-color: var(--kstu-accent-dark);
    border-color: var(--kstu-accent-dark);
    color: #fff;
}

/* "Forgot password" link */
.portal-login .portal-forgot {
    color: var(--kstu-primary);
    font-weight: 600;
}
