/* =====================================================
   Login — Able Pro v2
   ===================================================== */

body.auth-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(1000px 520px at 0% 0%, rgba(70, 128, 255, 0.18), transparent 55%),
        radial-gradient(800px 420px at 100% 10%, rgba(0, 200, 215, 0.14), transparent 50%),
        radial-gradient(600px 400px at 50% 100%, rgba(70, 128, 255, 0.08), transparent 50%),
        #f8f9fa;
    color: #1d2630;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

body.auth-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(70, 128, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(70, 128, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
    pointer-events: none;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 24px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 36px 28px;
    border: 1px solid #e7eaee;
    box-shadow:
        0 8px 24px rgba(27, 46, 94, 0.08),
        0 28px 56px rgba(27, 46, 94, 0.06);
    animation: authIn 0.35s ease;
}

@keyframes authIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    font-size: 24px;
    color: #fff;
    background: linear-gradient(135deg, #4680ff 0%, #6b9aff 100%);
    box-shadow: 0 10px 24px rgba(70, 128, 255, 0.35);
}

.auth-logo h1 {
    margin: 16px 0 4px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #1d2630;
}

.auth-logo p {
    margin: 0;
    color: #5b6b79;
    font-size: 13px;
    font-weight: 500;
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-alert-error {
    background: #fce9e9;
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.12);
}

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

.auth-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
    color: #1d2630;
}

.auth-form label i {
    margin-right: 6px;
    color: #4680ff;
}

.auth-form .form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e7eaee;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #1d2630;
    background: #f8f9fa;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}

.auth-form .form-control:hover {
    border-color: #d5dbe2;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: #4680ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(70, 128, 255, 0.15);
}

.auth-submit {
    width: 100%;
    padding: 13px 16px;
    background: #4680ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(70, 128, 255, 0.32);
    transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
    margin-top: 6px;
}

.auth-submit:hover {
    background: #6b9aff;
    box-shadow: 0 8px 20px rgba(70, 128, 255, 0.4);
    transform: translateY(-1px);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #8996a4;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-footer::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2ca87f;
    box-shadow: 0 0 0 3px rgba(44, 168, 127, 0.18);
}

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