* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top right, rgba(20,184,166,.16), transparent 35%),
        linear-gradient(135deg, #eef6ff, #f8fbff);
    color: #0f172a;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.site-logo,
.header-logo,
.login-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: 18px;
}

.product-card img,
.product-image,
.card-img-top {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
}

.banner img,
.hero img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.avatar,
.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.navbar,
.site-header,
header {
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #e5eefb;
    box-shadow: 0 8px 30px rgba(15,23,42,.05);
}

.login-page-wrap {
    min-height: 75vh;
    padding: 32px 14px;
}

.login-hero {
    border-radius: 30px;
    padding: 30px;
    color: #fff;
    background:
        radial-gradient(circle at top left, rgba(34,211,238,.22), transparent 35%),
        radial-gradient(circle at bottom right, rgba(59,130,246,.25), transparent 30%),
        linear-gradient(135deg,#071a3d,#0b5cff);
    box-shadow: 0 20px 55px rgba(15,23,42,.22);
}

.login-hero h1 {
    font-weight: 950;
    margin: 0 0 8px;
    letter-spacing: -1px;
}

.login-hero p {
    margin: 0;
    color: rgba(255,255,255,.82);
}

.login-card {
    border-radius: 32px;
    border: 1px solid #dbe7f6;
    background: rgba(255,255,255,.96);
    box-shadow: 0 20px 55px rgba(15,23,42,.10);
}

.login-card h4 {
    font-size: 42px;
    font-weight: 950;
    letter-spacing: -1.5px;
    color: #20242b;
}

.login-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 22px;
}

.form-label {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.form-control {
    min-height: 68px;
    border-radius: 22px;
    border: 2px solid #dbe7f6;
    padding: 16px 22px;
    font-size: 20px;
    background: #fff;
    box-shadow: none;
}

.form-control:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 7px rgba(59,130,246,.20);
}

.login-hp {
    display: none !important;
    visibility: hidden !important;
    height: 0;
    overflow: hidden;
}

.otp-method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.otp-method {
    border: 2px solid #dbe7f6;
    border-radius: 24px;
    padding: 18px 12px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    font-size: 22px;
    font-weight: 950;
    color: #0f172a;
    transition: .18s ease;
}

.otp-method small {
    display: block;
    margin-top: 6px;
    font-weight: 700;
    color: #64748b;
    font-size: 15px;
}

.otp-method input {
    display: none;
}

.otp-method:hover {
    transform: translateY(-1px);
    border-color: #93c5fd;
}

.otp-method:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
    box-shadow: 0 0 0 6px rgba(37,99,235,.08);
}

.login-security-box {
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    padding: 18px;
    margin-bottom: 20px;
}

.btn-primary {
    min-height: 70px;
    border-radius: 22px;
    border: 0;
    font-size: 22px;
    font-weight: 950;
    background: linear-gradient(135deg, #0b5cff, #2563eb);
    box-shadow: 0 14px 30px rgba(37,99,235,.28);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0047d8, #1d4ed8);
}

.alert {
    border-radius: 24px;
    padding: 20px 24px;
    font-size: 18px;
    line-height: 1.6;
}

.alert-danger {
    background: #fee2e2;
    border: 2px solid #fca5a5;
    color: #7f1d1d;
}

.alert-success {
    background: #dcfce7;
    border: 2px solid #86efac;
    color: #14532d;
}

.alert-info {
    background: #cffafe;
    border: 2px solid #67e8f9;
    color: #164e63;
}

a.small {
    font-size: 17px;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

a.small:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .login-page-wrap {
        min-height: auto !important;
        padding: 22px 12px 34px;
    }

    .login-hero {
        display: none;
    }

    .login-card {
        border-radius: 30px;
        padding: 28px !important;
    }

    .login-card h4 {
        font-size: 42px;
    }

    .otp-method-grid {
        grid-template-columns: 1fr;
    }

    .form-control {
        min-height: 66px;
        font-size: 20px;
    }

    .btn-primary {
        min-height: 68px;
        font-size: 22px;
    }
}