/* Auth screens — dashboard visual language */
* { box-sizing: border-box; }

body {
    background: #ffffff;
}

.phone-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    background: #ffffff !important;
}

.auth-screen {
    width: 100%;
    display: grid;
    gap: 16px;
}

.auth-login {
    max-width: 360px;
}

.logo {
    text-align: center;
}

.logo p {
    margin: 3px 0 0;
    color: #64748b;
    font-size: .78rem;
    font-weight: 700;
}

.auth-card {
    padding: 20px 18px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.form-field {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    margin-bottom: 7px;
    color: #64748b;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    height: 48px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    font-size: .88rem !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.form-control:focus {
    background: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12) !important;
    color: #0f172a !important;
}

.form-control::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

.form-control,
.form-control:focus,
input[type="text"],
input[type="password"] {
    -webkit-text-fill-color: #0f172a !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #0f172a !important;
    -webkit-box-shadow: 0 0 0 1000px #f8fafc inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.btn-login {
    height: 50px;
    margin-top: 2px;
    border: 0 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #60a5fa, #2563eb) !important;
    color: #ffffff !important;
    font-size: .95rem;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .22);
    transition: transform .18s ease, box-shadow .18s ease;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(37, 99, 235, .3);
}

.btn-login:active {
    transform: scale(.98);
}

.alert-danger {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 4px;
    padding: 11px 12px;
    border-radius: 10px !important;
    background: #fee2e2 !important;
    border: 1px solid #fecaca !important;
    color: #dc2626 !important;
    font-size: .78rem;
    font-weight: 700;
}

.alert-success {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 4px;
    padding: 11px 12px;
    border-radius: 10px !important;
    background: #d1fae5 !important;
    border: 1px solid #bbf7d0 !important;
    color: #047857 !important;
    font-size: .78rem;
    font-weight: 700;
}

.alert-warning {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 4px;
    padding: 11px 12px;
    border-radius: 10px !important;
    background: #fef3c7 !important;
    border: 1px solid #fde68a !important;
    color: #b45309 !important;
    font-size: .78rem;
    font-weight: 700;
}

.alert-info,
.alert-secondary {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 4px;
    padding: 11px 12px;
    border-radius: 10px !important;
    background: #eff6ff !important;
    border: 1px solid #dbeafe !important;
    color: #2563eb !important;
    font-size: .78rem;
    font-weight: 700;
}

.footer-text {
    color: #64748b;
    font-size: .82rem;
    font-weight: 600;
}

.register-link {
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
}

.register-link:hover {
    color: #1d4ed8;
}

@media (max-width: 380px) {
    .brand-icon {
        width: 56px;
        height: 56px;
    }

    .auth-card {
        padding: 16px;
    }
}
