﻿/* =========================================================
   AUTH PAGE DESIGN SYSTEM
   Scope: Login / Register / Forgot Password
   Owner: SmartInn RMS
   ========================================================= */

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

    /* 认证页基础语义：以后 Login / Register / Forgot Password 都应该用 auth-page */
    body.auth-page,
    body.login-page {
        min-height: 100vh;
        background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%), radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.08), transparent 25%), linear-gradient(135deg, #eef4fb 0%, #f8fafc 45%, #eef2f7 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
    }

        /* 保留 Account Layout 基础设施，只扩展默认窄登录盒子 */
        body.auth-page .login-box,
        body.login-page .login-box {
            width: min(1240px, calc(100vw - 48px)) !important;
            max-width: none !important;
            margin: 0 !important;
        }

        body.auth-page .login-logo,
        body.login-page .login-logo {
            margin-bottom: 18px;
        }

            body.auth-page .login-logo a,
            body.login-page .login-logo a {
                color: #0f172a;
                font-size: 20px;
                font-weight: 700;
                letter-spacing: 0.3px;
            }

        body.auth-page .card,
        body.login-page .card {
            border: 0;
            border-radius: 28px;
            overflow: visible;
            box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
            background: rgba(255, 255, 255, 0.82);
            backdrop-filter: blur(10px);
            position: relative;
        }

        body.auth-page .card-header,
        body.login-page .card-header {
            background: rgba(255, 255, 255, 0.82);
            border-bottom: 1px solid rgba(226, 232, 240, 0.85);
            padding: 14px 24px;
            position: relative;
            z-index: 2;
        }

            body.auth-page .card-header,
            body.auth-page .card-header *,
            body.login-page .card-header,
            body.login-page .card-header * {
                font-size: 14px;
            }

        body.auth-page .login-card-body,
        body.login-page .login-card-body {
            padding: 0 !important;
            background: transparent !important;
        }

        body.auth-page .card-footer,
        body.login-page .card-footer {
            background: rgba(255, 255, 255, 0.82);
            border-top: 1px solid rgba(226, 232, 240, 0.85);
            text-align: center;
            padding: 12px 24px;
            position: relative;
            z-index: 2;
        }

            body.auth-page .card-footer .nav,
            body.auth-page .card-footer .list-inline,
            body.auth-page .card-footer .language-switch-area,
            body.login-page .card-footer .nav,
            body.login-page .card-footer .list-inline,
            body.login-page .card-footer .language-switch-area {
                justify-content: center;
            }

        body.auth-page .login-box > .row,
        body.login-page .login-box > .row {
            margin-top: 14px;
        }

/* =========================
   Auth Shell Layout
   ========================= */

.smartinn-auth-shell,
.smartinn-login-shell {
    min-height: 680px;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    overflow: visible !important;
    position: relative;
    z-index: 1;
}

.smartinn-brand-panel {
    position: relative;
    z-index: 1;
    overflow: visible !important;
    background: linear-gradient(160deg, rgba(10, 37, 64, 0.97), rgba(21, 74, 145, 0.94));
    color: #fff;
    padding: 56px 52px;
    display: flex;
    align-items: flex-end;
    border-top-left-radius: 28px;
    border-bottom-left-radius: 28px;
}

    .smartinn-brand-panel::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.10), transparent 30%), linear-gradient(to top right, rgba(255, 255, 255, 0.03), transparent 35%);
        pointer-events: none;
        border-top-left-radius: 28px;
        border-bottom-left-radius: 28px;
    }

.smartinn-brand-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.smartinn-brand-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.smartinn-brand-title {
    margin: 0 0 16px 0;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
}

.smartinn-brand-subtitle {
    margin: 0 0 30px 0;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
}

.smartinn-feature-list {
    display: grid;
    gap: 16px;
}

.smartinn-feature-item {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 16px;
    align-items: start;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.smartinn-feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    font-size: 18px;
}

.smartinn-feature-item h5 {
    margin: 2px 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.smartinn-feature-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.76);
}

.smartinn-form-panel {
    position: relative;
    z-index: 1;
    overflow: visible !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px;
    background: rgba(255, 255, 255, 0.60);
    border-top-right-radius: 28px;
    border-bottom-right-radius: 28px;
}

/* =========================
   Auth Form Components
   ========================= */

.smartinn-auth-card,
.smartinn-login-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 32px 30px 24px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: visible !important;
    position: relative;
    z-index: 1;
}

.smartinn-auth-header,
.smartinn-login-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.smartinn-logo-mark {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f3d75 0%, #2563eb 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
    flex-shrink: 0;
}

.smartinn-auth-header h2,
.smartinn-login-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

.smartinn-auth-header p,
.smartinn-login-header p {
    margin: 4px 0 0 0;
    color: #64748b;
    font-size: 14px;
}

.smartinn-auth-card .form-group,
.smartinn-login-card .form-group {
    margin-bottom: 18px;
}

.smartinn-auth-card .form-label,
.smartinn-login-card .form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.smartinn-input-wrap {
    position: relative;
}

    .smartinn-input-wrap .input-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
        font-size: 14px;
        z-index: 2;
    }

.smartinn-auth-card .form-control,
.smartinn-login-card .form-control {
    height: 50px;
    border-radius: 14px;
    border: 1px solid #dbe3ee;
    background: #fff;
    padding-left: 42px;
    font-size: 14px;
    box-shadow: none;
    transition: all 0.2s ease;
}

    .smartinn-auth-card .form-control:focus,
    .smartinn-login-card .form-control:focus {
        border-color: #60a5fa;
        box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16);
    }

.smartinn-auth-actions,
.smartinn-login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 6px;
    margin-bottom: 8px;
}

    .smartinn-auth-actions .icheck-primary,
    .smartinn-login-actions .icheck-primary {
        margin: 0;
    }

    .smartinn-auth-actions label,
    .smartinn-login-actions label {
        margin-bottom: 0;
        font-weight: 500;
        color: #475569;
    }

.smartinn-auth-submit,
.smartinn-login-button {
    min-width: 140px;
    height: 50px;
    border: none;
    border-radius: 14px;
    padding: 0 24px;
    background: linear-gradient(135deg, #0f3d75 0%, #2563eb 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
    transition: all 0.2s ease;
}

    .smartinn-auth-submit:hover,
    .smartinn-auth-submit:focus,
    .smartinn-login-button:hover,
    .smartinn-login-button:focus {
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 16px 28px rgba(37, 99, 235, 0.28);
    }

/* =========================
   Responsive
   ========================= */

@media (max-width: 1024px) {
    body.auth-page,
    body.login-page {
        padding: 18px;
    }

        body.auth-page .login-box,
        body.login-page .login-box {
            width: min(100%, calc(100vw - 36px)) !important;
        }

    .smartinn-auth-shell,
    .smartinn-login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .smartinn-brand-panel {
        padding: 40px 32px;
        align-items: flex-start;
        border-top-left-radius: 28px;
        border-top-right-radius: 28px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

        .smartinn-brand-panel::before {
            border-top-left-radius: 28px;
            border-top-right-radius: 28px;
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
        }

    .smartinn-form-panel {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-left-radius: 28px;
        border-bottom-right-radius: 28px;
    }

    .smartinn-brand-title {
        font-size: 34px;
    }

    .smartinn-feature-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767.98px) {
    body.auth-page,
    body.login-page {
        padding: 12px;
        align-items: stretch;
    }

        body.auth-page .login-box,
        body.login-page .login-box {
            width: 100% !important;
        }

        body.auth-page .login-logo,
        body.login-page .login-logo {
            margin-bottom: 12px;
        }

            body.auth-page .login-logo a,
            body.login-page .login-logo a {
                font-size: 18px;
            }

        body.auth-page .card,
        body.login-page .card {
            border-radius: 20px;
        }

        body.auth-page .card-header,
        body.auth-page .card-footer,
        body.login-page .card-header,
        body.login-page .card-footer {
            padding-left: 16px;
            padding-right: 16px;
        }

    .smartinn-brand-panel {
        padding: 26px 20px 20px;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

        .smartinn-brand-panel::before {
            border-top-left-radius: 20px;
            border-top-right-radius: 20px;
        }

    .smartinn-brand-badge {
        margin-bottom: 14px;
        font-size: 11px;
    }

    .smartinn-brand-title {
        font-size: 26px;
        line-height: 1.25;
        margin-bottom: 10px;
    }

    .smartinn-brand-subtitle {
        font-size: 13px;
        line-height: 1.65;
        margin-bottom: 0;
    }

    .smartinn-feature-list {
        display: none;
    }

    .smartinn-form-panel {
        padding: 16px;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    .smartinn-auth-card,
    .smartinn-login-card {
        max-width: none;
        border-radius: 18px;
        padding: 22px 18px 20px;
        box-shadow: none;
    }

    .smartinn-auth-header h2,
    .smartinn-login-header h2 {
        font-size: 24px;
    }

    .smartinn-auth-header p,
    .smartinn-login-header p {
        font-size: 13px;
    }

    .smartinn-auth-card .form-control,
    .smartinn-login-card .form-control {
        height: 52px;
        font-size: 16px;
    }

    .smartinn-auth-actions,
    .smartinn-login-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .smartinn-auth-actions .icheck-primary,
        .smartinn-login-actions .icheck-primary {
            width: 100%;
        }

    .smartinn-auth-submit,
    .smartinn-login-button {
        width: 100%;
        min-width: 0;
        height: 52px;
        font-size: 16px;
    }
}
