html,
body {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: manipulation;
}

.login-screen {
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 18px;
    position: relative;
}

.login-card {
    width: min(100%, 390px);
    padding: 0 6px;
    text-align: left;
}

.greeting {
    margin: 0 0 19px;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.greeting .eyebrow {
    display: block;
    font-size: clamp(0.88rem, 2.05vw, 1.15rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.greeting .headline {
    display: block;
    font-size: clamp(1.8rem, 4.6vw, 3.1rem);
    text-transform: none;
}

.login-form {
    display: grid;
    gap: 14px;
}

.field {
    display: grid;
    gap: 10px;
    justify-items: start;
}

.field label {
    font-size: 0.84rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.84);
    letter-spacing: -0.02em;
    text-align: left;
    width: 100%;
}

.field input {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 18px;
    padding: 0 18px;
    background: var(--input-bg);
    color: var(--input-text);
    font-size: 0.88rem;
    outline: none;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder {
    color: var(--input-placeholder);
}

.field input:focus {
    box-shadow: 0 0 0 3px rgba(186, 197, 230, 0.3), 0 18px 40px rgba(0, 0, 0, 0.14);
    transform: translateY(-1px);
}

.field.error input {
    box-shadow: 0 0 0 2px rgba(240, 107, 107, 0.92), 0 18px 40px rgba(0, 0, 0, 0.14);
}

.error {
    margin-top: 6px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(240, 107, 107, 0.14);
    border: 1px solid rgba(240, 107, 107, 0.3);
    color: #ffdede;
    font-size: 0.86rem;
    text-align: left;
}

.links {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    justify-items: start;
}

.links a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.86rem;
    letter-spacing: -0.01em;
    text-align: left;
}

.links a:hover {
    text-decoration: underline;
}

.links .register {
    font-weight: 700;
}

.actions-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 4px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    border: 0;
    padding: 0 20px;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

.action-btn:hover {
    transform: translateY(-1px);
}

.action-btn-primary {
    background: #bac5e6;
    color: var(--bg);
    font-size: 0.84rem;
    font-weight: 500;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.action-btn-primary:hover {
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.16);
}

.action-btn-google {
    background: #ffffff;
    color: var(--bg);
    font-size: 0.84rem;
    font-weight: 500;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.action-btn-google:hover {
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.16);
}

.google-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    flex: 0 0 auto;
}

.google-text {
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--bg);
}

.brand-logo {
    position: fixed;
    left: 50%;
    bottom: 52px;
    transform: translateX(-50%);
    width: min(36vw, 150px);
    height: auto;
    opacity: 0.98;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 640px) {
    .login-screen {
        padding: 22px 14px;
    }

    .login-card {
        width: min(100%, 330px);
        padding-top: 0;
    }

    .greeting {
        margin-bottom: 16px;
    }

    .greeting .headline {
        font-size: clamp(1.65rem, 9.5vw, 2.6rem);
    }

    .field input {
        height: 48px;
        border-radius: 16px;
    }

    .actions-row {
        gap: 10px;
    }

    .action-btn {
        min-height: 48px;
        padding: 0 14px;
        border-radius: 14px;
    }

    .brand-logo {
        width: min(42vw, 135px);
        bottom: 42px;
    }
}
