/* Login page styles - matching Angular app */

.bg-pattern {
    background: url("../Images/loginbg.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
}

.login-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.login-content {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
}

.login-form {
    width: 100%;
    max-width: 400px;
    margin-right: 15%;
    margin-bottom: 5%;
}

.whitebg {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-logo {
    max-width: 25%;
    margin: 0 auto;
    display: block;
}

.sign-in-title {
    color: #333;
    font-weight: 500;
    margin: 0;
}

/* Input field icons */
.input-group-text .material-icons {
    color: #757575;
    margin-bottom: 2px;
    margin-right: 2px;
}

/* Code resend link */
.code-resend {
    cursor: pointer;
    text-decoration: underline;
    color: blue;
    display: flex;
    flex-direction: row;
}

.code-resend-disabled {
    cursor: default;
    pointer-events: none;
    text-decoration: none;
    color: grey;
    display: flex;
    flex-direction: row;
}

/* Forgot password link */
.forgot-password-link {
    cursor: pointer;
    color: #3f51b5;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* Submit button */
.submit-button {
    margin-top: 15px;
}

/* Footer styles */
.login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    background-color: rgba(236, 232, 230, 0.49);
    color: white;
    font-size: 11px;
    padding: 5px 10px;
}

.login-footer a {
    cursor: pointer;
    color: white;
}

.login-footer a:hover {
    color: #ddd;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-style: italic;
    font-size: x-small;
}

.footer-logo img {
    max-width: 100px;
    max-height: 2rem;
    margin-left: 5px;
}

/* Azure AD login button (hidden by default, shown for AD users) */
.azure-login {
    position: absolute;
    right: 20%;
    top: 200px;
}

.azure-login__logo {
    position: absolute;
    left: 50%;
    top: -25px;
    background: #fff;
    border-radius: 50px;
    width: 180px;
    height: 50px;
    margin-left: -80px;
}

.azure-login__logo img {
    height: 100%;
    margin: auto;
}

.azure-login__login-tmpl {
    box-shadow: 0px 5px 5px -3px rgba(82, 63, 104, 0.06),
                0px 8px 10px 1px rgba(82, 63, 104, 0.042),
                0px 3px 14px 2px rgba(82, 63, 104, 0.036);
    background: #000;
    border-radius: 25px;
    height: 180px;
    width: 320px;
    text-align: center;
}

.azure-login__login-tmpl .text-center {
    color: #fff;
}

.azure-login__login-tmpl button {
    background-color: #eb3939 !important;
    border-radius: 30px;
    line-height: 28px;
}

/* Responsive styles */
@media only screen and (max-width: 767px) {
    .login-form {
        margin-right: 5%;
        max-width: 90%;
    }

    .login-content {
        justify-content: center;
    }

    .azure-login {
        position: absolute;
        right: initial;
        left: calc(50% - 160px);
        top: 100px;
    }

    .login-footer {
        flex-direction: column;
        gap: 5px;
        padding: 10px;
    }
}

@media only screen and (max-height: 375px) {
    .azure-login {
        top: calc(50% - 100px);
    }
}

/* Hint text */
.hinttext {
    font-size: 10px;
    font-style: italic;
}

/* Custom color overrides */
.customcolor {
    color: black !important;
    background: white !important;
}
