body,
html {
    height: 100%;
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    font-size: 16px;
    overflow: hidden;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.logo {
    margin-bottom: 2rem;
    width: 13rem;
}


.form-wrapper {
    padding: 1rem;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

.title-subtitle {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.title {
    width: 100%;
    text-align: center;
    font-size: 2rem;
    line-height: 2.25rem;
    font-weight: 600;
    color: #272E35;
    margin: 0;
}

.subtitle {
    width: 100%;
    text-align: center;
    font-size: 0.813rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #272E35;
    margin: 0;
}

.buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: .75rem;
}

.social-button-login {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    height: 2.4rem;
    text-decoration: none;
    border-radius: 0.375rem;
    border: 1px solid #CFD6DD;
    background: #ffffff;
    color: #4A545E;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.social-button-login:hover {
    background-color: #F9FBFF;
    border: 1px solid #B2D3FF;
}

.or-separator-line-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 1px;
    background-color: #E9ECEF;
}

.or-separator-line-text {
    padding: 0 1rem;
    background-color: #ffffff;
    color: #7E8B99;
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1rem;
}

.form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
}

.label-row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.forgot-password-link {
    color: #4A545E;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 400;
    text-decoration: none;
}

.form-fields-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.813rem;
    line-height: 1.25rem;
    color: #272E35;
}

.form input {
    padding: 0.5rem 0.875rem;
    border: 1px solid #CFD6DD;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.4rem;
}

*:focus-visible {
    outline: 1px solid #388AFF;
    border: none;
    outline-offset: 0px;
}

.form input:hover {
    border: 1px solid #388AFF;
}

.form input:focus {
    border: 1px solid #388AFF;
    box-shadow: 0px 0px 0px 1px #6792F4;
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-field input {
    width: 100%;
}

.password-field img {
    position: absolute;
    right: 12px;
    top: 10px;
    cursor: pointer;
}

.form button {
    margin-top: 0.25rem;
    padding: 0.5rem 0.875rem;
    background-color: #006AFF;
    color: #ffffff;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.5rem;
}

.form button:hover {
    background-color: #1e5ed4;
}

.links {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    font-size: 0.875rem;
    align-items: center;
    gap: 2rem;
}

.link {
    text-align: center;
    width: 100%;
}

.links a {
    color: #006AFF;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 0.125rem;
    font-weight: 600;
}

.links a:hover,
.forgot-password-link:hover {
    text-decoration: underline;
}


.error {
    border: 1px solid #F26464 !important;
    border-radius: 0.375rem;
}

.error-message {
    color: #F26464;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}


/* Toast */
.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: absolute;
    top: 25px;
    right: 30px;
    border-radius: 0.375rem;
    background: #FFAD33;
    padding: 8px 4px 8px 16px;
    box-shadow: 0 6px 20px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: translateX(calc(100% + 30px));
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
}

.toast.active {
    transform: translateX(0%);
}

.toast .toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-content .check {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
}

.toast-content .message {
    display: flex;
    flex-direction: column;
}

.message .text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #212121;
}


.toast .close {
    padding: 5px;
    cursor: pointer;
    opacity: 0.7;
}

.toast .close:hover {
    opacity: 1;
}


@keyframes progress {
    100% {
        right: 100%;
    }
}

button {
    padding: 12px 20px;
    font-size: 20px;
    outline: none;
    border: none;
    background-color: #2770ff;
    color: #fff;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: 0.3s;
}

button:disabled {
    cursor: not-allowed;
    opacity: 50%;
}

button:hover {
    background-color: #2770ff;
}

.toast.active ~ button {
    pointer-events: none;
}


@media (max-width: 600px) {
    html {
        font-size: 14px;
    }

    .form-wrapper {
        padding: 1.5rem;
    }

    .password-field img {
        position: absolute;
        right: 12px;
        top: 6px;
    }

    .toast {
        position: fixed;
        width: 100%;
        top: 0;
        right: 0;
    }

    .toast .toast-content {
        width: 100%;
        padding: 8px 12px;
    }

    .links {
        margin-top: 1rem;
        gap: 1rem;
    }
}