html,
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI",Helvetica,Tahoma,Geneva, sans-serif;
    color: #333;
    background-color: #fff;
}

.sciens-header {
    width: 100%;
    height: 70px;
    min-height: 70px;
    background-color: #4D70B0;
    display: flex;
    align-items: center;
    padding: 0 28px;
    box-sizing: border-box;
}

.sciens-header-left,
.sciens-header-right {
    flex: 0 0 25%;
    display: flex;
    align-items: center;
}

.sciens-header-left {
    justify-content: flex-start;
}

.sciens-header-right {
    justify-content: flex-end;
}

.sciens-header-center {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.75);
    color: #fff;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 13px;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
}

.sciens-logo {
    color: #EC8803;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 40px;
    font-weight: 300;
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    text-decoration: none;
}

button.sciens-logo {
    cursor: pointer;
}

    button.sciens-logo:hover {
        color: #EC8803;
        text-decoration: none;
    }

.sciens-logo-form {
    margin: 0;
    padding: 0;
}

.login-actions {
    width: 234px;
}

    .login-actions form,
    .login-actions .btn {
        width: 100%;
    }

.login-separator {
    text-align: center;
    margin: 14px 0;
    font-size: 16px;
    color: #333;
}

.sciens-page {
    padding: 20px 40px 24px 40px;
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.sciens-page-title {
    color: #4D70B0;
    font-size: 24px;
    font-weight: 400;
    margin: 0 0 18px 0;
}
/* Sign-in, password reset, MFA etc. */
.sciens-form {
    width: 100%;
    max-width: 430px;
}

/* Account/security management pages */
.sciens-manage {
    width: 100%;
    max-width: 750px;
}
.sciens-manage table {
        width: 100%;
    }

.sciens-form .form-label {
    color: #4D70B0;
    font-size: 14px;
    margin-bottom: 6px;
}

.sciens-form .form-control {
    border-radius: 0;
    border: 1px solid #999;
    min-height: 38px;
}

    .sciens-form .form-control:focus {
        border-color: #4D70B0;
        box-shadow: 0 0 0 0.15rem rgba(77,112,176,.18);
    }

    /* Form controls */
.sciens-form .form-control {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #aeb5bf;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    font-weight: 400;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .sciens-form .form-control:focus {
        outline: none;
        border-color: #4D70B0;
        box-shadow: 0 0 0 3px rgba(77, 112, 176, 0.14);
    }


    /* Labels */
.sciens-form .form-label {
    color: #4D70B0;
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 5px;
}


/* Sciens buttons */
.btn-sciens {
    min-width: 125px;
    padding: 8px 16px;
    color: #fff;
    background-color: #4D70B0;
    border: 1px solid #4D70B0;
    border-radius: 6px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
}

    .btn-sciens:hover {
        color: #fff;
        background-color: #405f99;
        border-color: #405f99;
    }

.btn-sciens-secondary {
    min-width: 125px;
    padding: 8px 16px;
    color: #4D70B0;
    background-color: #fff;
    border: 1px solid #4D70B0;
    border-radius: 6px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
}

    .btn-sciens-secondary:hover {
        background-color: #f3f6fb;
    }


.email-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .email-display .form-control {
        flex: 1;
    }

    .email-display .btn {
        flex-shrink: 0;
        padding: 5px 12px;
    }

/* Remember me */
.sciens-form .form-check-label {
    font-size: 14px;
    font-weight: 400;
}


/* Links */
.sciens-link {
    color: #4D70B0;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
}


/* Disclaimer */
.sciens-login-footer {
    width: 100%;
    margin-top: auto;
    padding: 30px 30px 0 30px;
    box-sizing: border-box;
    color: #555;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    text-align: center;
}


/*    .sciens-account-button {
        color: #EC8803;
        border: 1px solid rgba(255, 255, 255, 0.8);
    }*/

.sciens-account-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    cursor: pointer;
}

    .sciens-account-button:hover {
        color: #EC8803;
        border-color: #EC8803;
    }

.sciens-account-dropdown {
    margin-top: 8px;
    min-width: 210px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 13px;
}

    .sciens-account-dropdown .dropdown-header {
        color: #4D70B0;
        font-weight: 400;
    }

    .sciens-account-dropdown .dropdown-item {
        padding: 8px 16px;
        color: #333;
    }

        .sciens-account-dropdown .dropdown-item:hover {
            color: #4D70B0;
            background-color: #f3f6fb;
        }


.authenticator-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.authenticator-icon {
    width: 30px;
    height: 30px;
    display: block;
    object-fit: contain;
}

.authenticator-name a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

    .authenticator-name a:hover .authenticator-icon {
        opacity: 0.8;
    }


.btn-sciens-microsoft {
    background-color: #fff;
    color: #4d70b0;
    border: 2px solid #4d70b0;
    padding: 9px 12px;
    font-size: 15px;
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
}

    .btn-sciens-microsoft .microsoft-logo {
        width: 85px;
        height: auto;
    }

    .btn-sciens-microsoft:hover,
    .btn-sciens-microsoft:focus {
        background-color: #4d70b0;
        color: #fff;
        border-color: #4d70b0;
    }

.account-menu-header {
    padding: 12px 18px 8px 18px;
    text-align: left;
}

.account-menu-title {
    color: #4d70b0;
    font-weight: 400;
    font-size: 16px;
}

.account-menu-email {
    margin-top: 3px;
    font-size: 14px;
    color: #6c757d;
    white-space: nowrap;
}

.account-menu a,
.account-menu button {
    display: block;
    width: 100%;
    padding: 10px 18px;
    text-align: left;
}

.alert-success-sciens {
    background-color: #eef4fb;
    border-color: #c9d9ee;
    color: #234a75;
}


.account-expand-button {
    padding: 0.4rem;
    border: 0;
    color: #4d70b0;
    background: transparent;
    box-shadow: none !important;
}

    .account-expand-button:hover {
        color: #34558f;
        background: #f3f6fa;
    }

.account-chevron {
    display: block;
    transition: transform 0.2s ease;
}

.account-expand-button[aria-expanded="true"] .account-chevron {
    transform: rotate(180deg);
}

/* Shared authentication page layout */
.sciens-auth-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 55px;
    box-sizing: border-box;
}

.sciens-auth-card {
    width: 100%;
    max-width: 500px;
    padding: 32px 36px 36px 36px;
    background-color: #f5f7fb;
    border: 1px solid #d5dce8;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
    box-sizing: border-box;
}

    .sciens-auth-card .sciens-form {
        max-width: none;
    }

    .sciens-auth-card .sciens-page-title {
        margin-bottom: 24px;
    }

@media screen and (max-width: 768px) {

    .sciens-header {
        height: 70px;
        min-height: 70px;
        flex-wrap: nowrap;
        padding: 0 14px;
    }

    /* Sciens logo on the left */
    .sciens-header-left {
        flex: 0 0 auto;
        justify-content: flex-start;
        margin: 0;
    }

    /* Hide the centre strapline on mobile */
    .sciens-header-center {
        display: none;
    }

    /* Account settings on the right */
    .sciens-header-right {
        flex: 0 0 auto;
        justify-content: flex-end;
        margin: 0 0 0 auto;
    }

    .sciens-page {
        padding: 18px 14px;
    }

    .sciens-auth-container {
        padding-top: 28px;
    }

    .sciens-auth-card {
        padding: 24px 20px 28px 20px;
        border-radius: 8px;
    }

}