*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
p,a,label,input {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #ced4da;
}
h1,h2,h3,h4,h5,h6, button {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #ced4da;
}
.h2-car{
    color: #fff;
} 
img {
    width: 100%;
}
body {
    height: 100vh;
}
input {
    outline: none;
}
.wrapper {
    height: 100%;
}
.container {
    display: flex;
    height: 100%;
}

.form-container {
    flex: 0.5;
    background: #191c24;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 4rem;
}
.layout-container {
    flex: 0.5;
    background: #ED1C24;
    color: #fff;
    padding: 2rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.form-control {
    display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    box-shadow: inset 0 0 0 transparent;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    font-size: 0.85rem;
    border-radius: 0.5rem;
    height: 45px;
}
.btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.btn {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    padding: 0.55rem 1.25rem;
}
.btn-primary {
    background-color: #ED1C24;
    border-color: #ED1C24;
    color: #fff;
    transition: .3s ease;
}
.btn-primary:hover {
    background-color: #ED1C24;
    border-color: #ED1C24;
    opacity: 0.9;
}
.form-container form {
    text-align: center;
}
.form-container form h1 {
    margin-bottom: 30px;
    font-size: 3.2rem;
    color: #ED1C24;
}
.form-container form h2 {
    margin-bottom: 20px;
}
.form-container form p {
    margin-bottom: 20px;
}
.form-container form input {
    margin-bottom: 20px;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-bottom: 20px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.status-message {
    color: #ced4da;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 20px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =====================Forgotten Password================== */

.forget_password{
    margin-bottom: 20px;
}

.login-support-row {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.forget_password a {
    text-decoration: none;
    color: #ED1C24;
    white-space: nowrap;
}

.forget_password a:hover {
    text-decoration: underline;
}

button.btn.btn-primary {
    cursor: pointer;
}


/* =====================Forgotten Password================== */

/* ===================== Password Visibility Styling  ================== */
.form-container form .feild-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    padding-right: 10px;
    background-color: #fff;
}
.form-container form .feild-wrapper input {
    margin-bottom: 0;
    border: 0;
}
.form-container form .feild-wrapper .icon-wrapper > i {
    cursor: pointer;
}
.form-container form .feild-wrapper input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important; /* Change the color to your desired background color */
    background: #fff !important;
}
/* ===================== Password Visibility Styling  ================== */

.two-factor-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.72);
}

.two-factor-modal {
    width: min(460px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: #191c24;
    border: 1px solid rgba(206, 212, 218, 0.34);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    padding: 30px;
}

.two-factor-modal form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.two-factor-modal h2 {
    margin-bottom: 4px;
    color: #fff;
    font-size: 1.55rem;
}

.two-factor-modal p {
    margin-bottom: 8px;
    line-height: 1.45;
}

.two-factor-modal label {
    color: #ced4da;
    font-weight: 600;
    text-align: left;
}

.two-factor-modal input {
    margin-bottom: 4px;
}

.two-factor-modal .btn {
    align-self: flex-start;
    margin-top: 4px;
}

.two-factor-error-message {
    margin-bottom: 4px;
}

.two-factor-code-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.two-factor-code-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.two-factor-code-toggle {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: #ED1C24;
    cursor: pointer;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.92rem;
    line-height: 1.3;
    text-align: left;
}

.two-factor-code-toggle:hover {
    text-decoration: underline;
}

.two-factor-code-toggle:focus-visible {
    outline: 2px solid rgba(237, 28, 36, 0.45);
    outline-offset: 3px;
}

.two-factor-cancel-form {
    margin-top: 12px;
}

.two-factor-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: #ced4da;
    cursor: pointer;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.92rem;
    line-height: 1.3;
}

.two-factor-cancel-button:hover {
    color: #ED1C24;
    text-decoration: underline;
}

.two-factor-cancel-button:focus-visible {
    outline: 2px solid rgba(237, 28, 36, 0.45);
    outline-offset: 3px;
}

@media screen and (max-width: 692px) {
    .form-container {
        flex: 1;
        padding: 2rem 2rem;
    }
    .layout-container {
        display: none !important;
    }
    .two-factor-modal {
        padding: 24px;
    }
}
