/* start global styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #202224;
}

input,
button {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.5;
    margin: 0;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

input:focus {
    outline: none;
}

.hidden {
    display: none;
}

/* end global styles */

/* start login styles */

.login-page {
    display: flex;
    height: 100vh;
    width: 100%;
    background-color: white;
}

.login-container {
    height: fit-content;
    width: 100%;
    max-width: 668px;
    padding: 20px;
    margin: auto;
}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 48px;
}

.logo-img {
    margin-bottom: 6px;
}

.logo-text {
    letter-spacing: 0.042px;
    color: #1a202c;
}

.logo-text-large {
    font-size: 21px;
    line-height: 25px;
    font-weight: 800;
}

.logo-text-small {
    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 66px;
}

.form-container {
    width: 100%;
    margin-bottom: 52px;
    padding: 16px 16px 24px;
    border-radius: 12px;
    background-color: #f7f8fa;
}

.form-inner {
    margin-bottom: 24px;
}

.form-title {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: -0.022px;
    color: #020617;
}

.group-input {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e6ea;
    border-radius: 8px;
    font-size: 14px;
    line-height: 18px;
    caret-color: #a1a1aa;
    color: #374151;
    background-color: #fff;
    letter-spacing: -0.28px;
}

.input-error-text {
    font-size: 14px;
    line-height: 20px;
    text-align: start;
    color: #ef4444;
}

.form-input::placeholder {
    font-size: 14px;
    font-weight: 400;
    color: #cbd5e1;
}

.form-input:focus,
.form-input:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.group-input:hover .form-input,
.group-input:focus-within .form-input {
    border: 1px solid #3b82f6;
}

.form-input-error {
    border: 1px solid #ef4444;
}

.group-input:hover .form-input-error,
.group-input:focus-within .form-input-error {
    border: 1px solid #ef4444;
}

.input-clear-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    visibility: hidden;
    opacity: 0;
    transition:
        opacity 0.2s,
        visibility 0.2s;
}

.group-input:hover .input-clear-btn,
.group-input:focus-within .input-clear-btn {
    visibility: visible;
    opacity: 1;
}

.group-input:has(.form-input-error) .input-clear-btn {
    display: none;
}

.group-input:has(.form-input-error) .input-error-text {
    display: block;
}

.login-btn {
    max-width: 173px;
    width: 100%;
    padding: 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: 0.039px;
    color: #fff;
    background-color: #3b82f6;
}

.login-btn:hover {
    opacity: 60%;
}

.login-footer-text {
    text-align: center;
    font-size: 12px;
    line-height: 20px;
    color: #4a5568;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 14px;
    user-select: none;
    cursor: pointer;
}

.checkbox-title {
    display: inline-block;
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: -0.022px;
    color: #020617;
}

.checkbox-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip-path: inset(50%);
}

.checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid #9ca3af;
    border-radius: 4px;
    overflow: hidden;
    background-color: transparent;
}

.form-checkbox:hover .checkbox {
    border-color: #38bdf8;
    transition: all 0.3s;
}

.icon-check {
    width: 12px;
    height: 10px;
    opacity: 0;
}

.checkbox-input:checked + .checkbox .icon-check {
    opacity: 1;
    transition: all 0.3s;
}
.checkbox-input:checked + .checkbox {
    border-color: #3b82f6;
    background-color: #3b82f6;
}

/* end login styles */
