@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

body.auth-shell-page {
    background: #0b1220;
    color: #08182a;
    overflow-x: hidden;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Brand mesh gradient backdrop, full viewport */
.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.auth-bg::before {
    content: "";
    position: absolute;
    inset: -15%;
    background:
        radial-gradient(38% 50% at 14% 12%, #d7ffe9 0%, rgba(215, 255, 233, 0) 60%),
        radial-gradient(45% 55% at 30% 4%, #79e8b4 0%, rgba(121, 232, 180, 0) 60%),
        radial-gradient(50% 60% at 70% 0%, #36b5c9 0%, rgba(54, 181, 201, 0) 58%),
        radial-gradient(60% 70% at 92% 12%, #1f6f8c 0%, rgba(31, 111, 140, 0) 60%),
        radial-gradient(60% 80% at 78% 88%, #0f5a4a 0%, rgba(15, 90, 74, 0) 60%),
        linear-gradient(135deg, #0b1220 0%, #114a45 32%, #2ea077 62%, #7ce4b2 90%, #c9f7dd 100%);
    filter: saturate(1.12);
}

.auth-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.auth-glow-a {
    width: 460px;
    height: 460px;
    left: 8%;
    top: -6%;
    background: #9bf3c6;
}

.auth-glow-b {
    width: 420px;
    height: 420px;
    right: 6%;
    bottom: -8%;
    background: #4fd6d6;
}

/* Centered viewport */
.auth-viewport {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    max-width: none;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

/* Card */
.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 40px 90px rgba(5, 20, 35, 0.34);
    padding: 40px 38px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 18px;
    color: #08182a;
    letter-spacing: -0.4px;
    text-decoration: none;
    margin-bottom: 22px;
}

.auth-brand:hover {
    text-decoration: none;
}

.auth-brand-mark {
    width: 24px;
    height: 24px;
    border-radius: 7px;
}

.auth-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: #08182a;
    margin: 0 0 6px;
    line-height: 1.15;
}

.auth-subtitle {
    font-size: 14.5px;
    color: #5b6b7f;
    margin: 0 0 26px;
    line-height: 1.5;
}

/* Form */
.auth-form {
    display: block;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1f3346;
    margin-bottom: 7px;
}

.auth-card input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    font-size: 15px;
    color: #08182a;
    background: #fff;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-card input::placeholder {
    color: #9aabbd;
}

.auth-card input:focus {
    outline: 0;
    border-color: #4fa07f;
    box-shadow: 0 0 0 3px rgba(79, 160, 127, 0.18);
}

.auth-help {
    font-size: 12px;
    color: #7488a0;
    margin: 7px 0 0;
    line-height: 1.45;
}

.auth-help ul {
    margin: 4px 0 0;
    padding-left: 16px;
}

.auth-field-error {
    font-size: 12.5px;
    color: #c65252;
    margin: 7px 0 0;
    font-weight: 600;
}

.auth-error {
    background: rgba(198, 82, 82, 0.08);
    border: 1px solid rgba(198, 82, 82, 0.28);
    color: #a23b3b;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 10px;
    padding: 11px 13px;
    margin-bottom: 18px;
}

.auth-error ul {
    margin: 0;
    padding-left: 16px;
}

.auth-submit {
    width: 100%;
    padding: 13px 16px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #4fa07f, #3a7d62);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
    margin-top: 6px;
    box-shadow: 0 10px 24px rgba(58, 125, 98, 0.32);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(58, 125, 98, 0.38);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: #9aabbd;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e6ecf2;
}

/* Google button */
.auth-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    background: #fff;
    color: #33485e;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.auth-google:hover {
    background: #f7fafc;
    border-color: #c7d3df;
    text-decoration: none;
}

.auth-google-icon {
    width: 18px;
    height: 18px;
    flex: none;
}

/* Footer */
.auth-foot {
    text-align: center;
    margin: 24px 0 0;
    font-size: 14px;
    color: #5b6b7f;
}

.auth-foot a {
    color: #3a7d62;
    font-weight: 700;
    text-decoration: none;
}

.auth-foot a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
    }

    .auth-title {
        font-size: 23px;
    }
}
