body {
    font-family: "Inter", sans-serif;
}

.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
}

.splash {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

.noise {
    position: absolute;
    inset: 0;
    background: url("../public/noise.png");
    opacity: 0.5;
    pointer-events: none;
    mix-blend-mode: soft-light;
}

.container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: right;
}

.card {
    background-color: #fff;
    height: 100%;
    width: 35%;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phone-field {
    position: relative;
    width: 80%;
}

.phone-display,
#phone-num {
    font: inherit;
    font-size: 18px;
    padding: 12px 16px;
    box-sizing: border-box;
    width: 100%;
    letter-spacing: inherit;
}

.phone-display {
    position: absolute;
    inset: 0;
    pointer-events: none;
    white-space: pre;
    display: flex;
    align-items: center;
    z-index: 99;
}

#phone-num {
    position: relative;
    background: transparent;
    color: transparent;
    caret-color: black;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    background-color: #f9f9f9;
}

#phone-num:focus {
    border-color: #4a90e2;
}

.filled {
    color: black;
}

.placeholder {
    color: #999;
}

.logo {
    border-radius: 50%;
    width: 70px;
    height: 70px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
}

h3 {
    margin-bottom: 5px;
    text-align: center;
}

p {
    color: #505050;
    font-size: 15px;
    margin-bottom: 25px;
    text-align: center;
}

.phone-label {
    width: 80%;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    font-weight: 500;
}

.input-label {
    width: 80%;
    font-size: 13px;
    color: #666;
    margin-top: 20px;
    margin-bottom: 6px;
    font-weight: 500;
}

.password-field {
    position: relative;
    width: 80%;
}

.password-field input {
    width: 100%;
    font: inherit;
    font-size: 18px;
    padding: 12px 44px 12px 16px;
    box-sizing: border-box;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
}

.password-field input:focus {
    border-color: #4a90e2;
}

.icon-btn {
    padding: 0;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);

    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    border: none;
    background: transparent;

    cursor: pointer;
    color: #666;
    transition: 0.2s;
}

.icon-btn:hover {
    background: #ddd;
    color: #000;
}

.icon-btn svg {
    display: block;
    width: 24px;
    height: 24px;
}

.enter {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    width: 80%;
    height: 40px;
    border-radius: 8px;
    border: none;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    background-color: #4a90e2;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.enter span {
    text-align: center;
}

.enter:hover {
    background-color: #3b83d4;
}

.enter:active {
    background-color: #3377c5;
    color: rgba(255, 255, 255, 0.8);
}

.enter.loading {
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

.enter.loading .loader {
    display: block;
}

.enter.loading span {
    display: none;
}

.loader {
    display: none;
    width: 22px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-right-color: rgb(255, 255, 255);
    animation: l2 .4s infinite linear;
}

@keyframes l2 {
    to {
        transform: rotate(1turn)
    }
}

.curtain {
    background: rgba(255, 255, 255, 0.4);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    overflow: hidden;
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
    transition: all 0.7s;
}

.curtain.hidden {
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
    background: transparent;
    pointer-events: none;
}

.login-toast {
    position: fixed;
    right: 24px;
    top: 24px;
    z-index: 1200;
    width: min(360px, calc(100vw - 32px));
    padding: 13px 15px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.login-toast.success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.login-toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .container {
        justify-content: center;
    }

    .card {
        width: 70%;
    }
}

@media (max-width: 768px) {
    .card {
        width: 100%;
        height: 90%;
        bottom: 0;
        position: fixed;
        padding-top: 20px;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    .login-toast {
        top: 16px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}
