@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-light: rgba(var(--primary-color-rgb), 0.3);;
    --primary-lighter: rgba(var(--primary-color-rgb), 0.2);;
    --primary-hover: rgba(var(--primary-color-rgb), 0.6);
    --text-color: #5e5873;
    --light-text: #6e6b7b;
    --border-color: #d8d6de;
    --bg-color: #f8f8f8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

html,
body {
    height: 100%;
    background-color: var(--bg-color);
}

.wrap-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    background-color: #f5f7fa;
    background-image:
        linear-gradient(135deg, rgba(176, 187, 251, 0.1) 0%, rgba(176, 187, 251, 0.1) 40%),
        linear-gradient(45deg, rgba(176, 187, 251, 0.1) 0%, rgba(176, 187, 251, 0.1) 40%);
    background-size: 100% 100%;
    background-position: center center;
}

.auth-top-shape {
    inset-block-start: -77px;
    inset-inline-start: -45px;
    position: absolute;
}

.auth-bottom-shape {
    inset-block-end: -58px;
    inset-inline-end: -58px;
    position: absolute;
}

.wrap-card {
    width: 450px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 24px 0 rgba(34, 41, 47, 0.1);
    position: relative;
}

.content-header {
    text-align: center;
    padding: 2rem 0 1rem;
}

.content-logo {
    margin-bottom: 1rem;
}

.content-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.content-title {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.content-subtitle {
    color: var(--light-text);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    padding: 0 1.5rem;
}

.content-form {
    padding: 0 2rem 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-control {
    width: 100%;
    height: 45px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 175, 108, 0.25);
}

.form-control::placeholder {
    color: #b9b9c3;
}

.content-button {
    display: block;
    width: 100%;
    height: 45px;
    background-color: var(--primary-lighter);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.content-button:not(:disabled) {
    background-color: var(--primary-color);
}

.content-button:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

.content-button:disabled {
    cursor: not-allowed;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--border-color);
}

.divider-text {
    padding: 0 1rem;
    color: var(--light-text);
}

.forgot-password {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password-text {
    color: var(--light-text);
    font-size: 0.875rem;
}

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

.forgot-password-link:hover {
    text-decoration: underline;
}

.password-wrapper {
    position: relative;
}

.back-to-login {
    text-align: center;
    margin-top: 1rem;
}

.back-to-login-text {
    color: var(--light-text);
    font-size: 0.875rem;
}

.back-to-login-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.back-to-login-link:hover {
    text-decoration: underline;
}

.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 5px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-danger a {
    color: inherit;
}


.captcha-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.captcha-image {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    height: 45px;
}

.captcha-refresh {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #f8f8f8;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
}

#pos {
    text-align: center;
    font-size: 0.75rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #6e6b7b;
    cursor: pointer;
}
.form-check {
    margin-bottom: 1.25rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid var(--border-color);
    appearance: none;
    border-radius: 3px;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: var(--light-text);
}

.content-form .action-buttons {
    display: flex;
    gap: 1rem;
}

.content-form .cancel-button {
    flex: 1;
    height: 45px;
    background-color: #f8f8f8;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.content-form .cancel-button:hover {
    background-color: #e9e9e9;
}

.content-form .submit-button {
    display: block;
    width: 100%;
    height: 48px;
    background-color: var(--primary-lighter);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.content-form .submit-button:not(:disabled) {
    background-color: rgba(var(--primary-color-rgb), 0.8);
}

.content-form .submit-button:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

.content-form .submit-button:disabled {
    cursor: not-allowed;
}

@media (max-width: 576px) {
    .wrap-card {
        width: 90%;
    }
}

.wrap-card {
    position: relative;
}

.auth-top-shape {
    position: absolute;
    z-index: 0;
}

.auth-bottom-shape {
    position: absolute;
    z-index: 0;
}

.wrap-content {
    position: relative;
    z-index: 1;
    background: white;
    display: block;
    overflow: hidden;
    overflow-wrap: break-word;
    position: relative;
    padding: 0;
    text-decoration: none;
    transition-duration: .28s;
    transition-property: box-shadow, opacity;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    z-index: 0;
    border-color: rgba(var(--border-color), 0.8);
    border-style: solid;
    border-width: 0;
    border-radius: 6px;
}