:root {
    /* Matches the deepened teal the application shell uses, so signing in
       does not look like a different product from the page behind it. The
       pastel #52B2CF it replaces held white text at 2.4:1. */
    --primary: #2b7f99;
    --primary-dark: #246b82;
    --lavender: #D1CFE2;
    --blue-gray: #9CADCE;
    --background: #edf0f5;
    --border: #dbe1ea;
    --text: #27313A;
    --muted: #5d6878;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--background);
    color: var(--text);
    font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-container {
    width: 100%;
    max-width: 430px;
}

/* Brand */

.brand {
    text-align: center;
    margin-bottom: 28px;
}

.brand-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;

    background-color: var(--primary);
    color: #ffffff;

    border-radius: 14px;

    box-shadow:
    0 8px 20px rgba(43, 127, 153, 0.20);
}

.brand-icon i {
    font-size: 26px;
}

.brand h1 {
    margin: 0;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.brand p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

/* Card */

.login-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;

    box-shadow:
    0 10px 30px rgba(43, 50, 64, 0.08);
}

.login-card-body {
    padding: 38px;
}

/* Alert */

.login-alert {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 24px;
    padding: 12px 14px;

    color: #7d3f4d;
    background-color: #f9edef;
    border: 1px solid #e7c3ca;
    border-radius: 8px;

    font-size: 14px;
}

.login-alert i {
    font-size: 17px;
}

/* Form */

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

.form-label {
    display: block;
    margin-bottom: 8px;

    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    height: 48px;

    padding: 10px 14px;

    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;

    color: var(--text);
    font-size: 15px;

    outline: none;

    transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.form-control::placeholder {
    color: #79828f;
}

.form-control:hover {
    border-color: #bcc5d2;
}

.form-control:focus {
    border-color: var(--primary);

    box-shadow:
    0 0 0 3px rgba(43, 127, 153, 0.18);
}

/* Password row */

.password-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 8px;
}

.password-header .form-label {
    margin-bottom: 0;
}

.forgot-password {
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Button */

.login-button {
    width: 100%;
    height: 48px;

    margin-top: 4px;

    border: 0;
    border-radius: 8px;

    background-color: var(--primary);
    color: #ffffff;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
    background-color 0.15s ease,
    transform 0.05s ease,
    box-shadow 0.15s ease;
}

.login-button:hover {
    background-color: var(--primary-dark);

    box-shadow:
    0 5px 14px rgba(43, 127, 153, 0.20);
}

.login-button:active {
    transform: translateY(1px);
}

/* Footer */

.login-footer {
    margin-top: 22px;

    text-align: center;
    color: var(--muted);

    font-size: 12px;
}

/* Responsive */

@media (max-width: 480px) {
    .login-page {
    padding: 16px;
    }

    .login-card-body {
    padding: 28px 22px;
    }

    .brand {
    margin-bottom: 22px;
    }
}
