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

:root {
    --auth-bg: #0f172a;
    --auth-card-bg: rgba(255, 255, 255, 0.94);
    --auth-text-main: #0f172a;
    --auth-text-muted: #64748b;
    --auth-primary: #0284c7;
    --auth-primary-hover: #0369a1;
    --auth-ring: rgba(2, 132, 199, 0.25);
    --auth-border: rgba(226, 232, 240, 0.8);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100%;
}

body.auth-neumorphism-body {
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
    color: var(--auth-text-main);
    background-color: #0f172a;
    background-image: 
        radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.2) 0px, transparent 50%),
        url('/assets/auth/bg.jpg');
    background-size: cover, cover, cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow-x: hidden;
}

.auth-page-shell {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 40px 36px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        0 25px 50px -12px rgba(15, 23, 42, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    border: 1px solid var(--auth-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-brand-logo {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 25px -5px rgba(2, 132, 199, 0.18),
        0 0 0 1px rgba(226, 232, 240, 0.9);
    padding: 10px;
}

.auth-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: center;
    color: #0f172a;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: var(--auth-text-muted);
    text-align: center;
    margin-bottom: 28px;
}

/* Status & Alert Box */
.auth-status,
.auth-error-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 20px;
}

.auth-status {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.auth-error-box {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.auth-alert-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-error-box ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-form-group {
    margin-bottom: 18px;
}

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.auth-input-wrap {
    position: relative;
    width: 100%;
}

.auth-input-icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: color 0.2s ease;
}

.auth-input-icon-left svg {
    width: 18px;
    height: 18px;
}

.auth-input {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 42px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
    color: #0f172a;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
}

.auth-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.auth-input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px var(--auth-ring);
}

.auth-input-wrap:focus-within .auth-input-icon-left {
    color: var(--auth-primary);
}

.auth-input-icon-right {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-password-toggle {
    background: transparent;
    border: none;
    padding: 6px;
    border-radius: 8px;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.auth-password-toggle:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.auth-password-toggle svg {
    width: 18px;
    height: 18px;
}

/* Remember & Forgot Password */
.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 24px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--auth-primary);
    border-radius: 4px;
    cursor: pointer;
}

.auth-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--auth-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: var(--auth-primary-hover);
    text-decoration: underline;
}

/* Submit Button */
.auth-submit {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transition: all 0.2s ease;
}

.auth-submit:hover {
    background: linear-gradient(135deg, #0369a1, #075985);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
    transform: translateY(-1px);
}

.auth-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.auth-btn-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.auth-submit:hover .auth-btn-icon {
    transform: translateX(3px);
}

.auth-footer-text {
    margin-top: 28px;
    text-align: center;
    font-size: 12.5px;
    color: #94a3b8;
    font-weight: 500;
}

.auth-footer-text strong {
    color: #64748b;
}

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