:root {
    --primary: #FF6B6B;
    --primary-gradient: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    --panel-bg: rgba(255, 255, 255, 0.95);
    --radius: 24px;

    --shadow-card: 0 10px 40px rgba(255, 107, 107, 0.08);
    --shadow-card-hover: 0 20px 50px rgba(255, 107, 107, 0.15);

    --text-main: #4A2C2A;
    --text-sub: #A1887F;
}

html {
    background: linear-gradient(135deg, #FFF8F3 0%, #FFF0E8 100%);
    min-height: 100%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #FFF8F3 0%, #FFF0E8 100%);
    color: var(--text-main);
    height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    position: relative;
    z-index: 1;
}

/* --- 背景光晕 --- */
.glass-circle-1 {
    position: absolute;
    top: -15%;
    left: -10%;
    width: clamp(300px, 60vw, 800px);
    height: clamp(300px, 60vw, 800px);
    background: rgba(255, 107, 107, 0.15);
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    animation: pulse 10s infinite alternate ease-in-out;
}

.glass-circle-2 {
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: clamp(250px, 50vw, 700px);
    height: clamp(250px, 50vw, 700px);
    background: rgba(230, 120, 0, 0.05);
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    animation: pulse 12s infinite alternate-reverse ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.05) translate(20px, -20px);
    }
}

/* =========================================
   基础样式 (默认作为 PC 端样式)
   ========================================= */
.login-panel {
    background: var(--panel-bg);
    border-radius: var(--radius);
    padding: 48px 40px;
    width: 400px;
    /* PC端保持 400px 小巧紧凑 */
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 6px solid var(--primary);
    backdrop-filter: blur(10px);

    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease, width 0.3s ease;
    animation: floatUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
}

.login-header h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 900;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 1px;
}

.login-header p {
    color: var(--text-sub);
    font-size: 14px;
    font-weight: 500;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 15px;
    font-weight: 700;
    color: #E65100;
    padding-left: 4px;
}

.macaron-input {
    width: 100%;
    background: #FFFBF7;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 16px 20px;
    font-size: 15px;
    color: var(--text-main);
    font-weight: 600;
    outline: none;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.02);
    -webkit-appearance: none;
    appearance: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.macaron-input::placeholder {
    color: #D7CCC8;
    font-weight: normal;
}

.macaron-input:focus {
    border-color: #FF9800;
    background: #FFFFFF;
    box-shadow: 0 4px 16px rgba(255, 152, 0, 0.08);
}

.btn-login {
    width: 100%;
    background: var(--primary-gradient);
    color: #FFFFFF;
    border: none;
    padding: 16px 0;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.25);
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 8px;
}

@media (hover: hover) {
    .login-panel:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-card-hover);
    }

    .btn-login:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 12px 25px rgba(255, 107, 107, 0.35);
    }
}

.btn-login:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

/* =========================================
   🖥️ 平板端 (Pad) 专属适配 
   (宽度 768px 到 1024px 之间)
   ========================================= */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .login-panel {
        /* Pad 上放宽面板，占比更大，显得更大气 */
        width: 75%;
        max-width: 600px;
        padding: 60px 50px;
        border-radius: 32px;
        /* 圆角加大 */
    }

    .login-header h1 {
        font-size: 34px;
        /* 标题放大 */
    }

    .login-header p {
        font-size: 16px;
    }

    .macaron-input {
        padding: 20px 24px;
        /* 输入框加高加宽，方便粗手指触控 */
        font-size: 18px;
        border-radius: 20px;
    }

    .input-group label {
        font-size: 18px;
    }

    .btn-login {
        padding: 20px 0;
        font-size: 20px;
        /* 按钮字号变大 */
        border-radius: 60px;
        margin-top: 16px;
    }
}

/* =========================================
   📱 手机端专属适配 
   (宽度小于 767px)
   ========================================= */
@media screen and (max-width: 767px) {
    .login-panel {
        width: 90%;
        /* 手机端占据屏幕 90% */
        max-width: 100%;
        padding: 36px 24px;
        border-radius: 20px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .macaron-input {
        padding: 14px 16px;
        font-size: 14px;
    }

    .btn-login {
        padding: 14px 0;
        font-size: 15px;
    }

    .glass-circle-1 {
        filter: blur(60px);
    }

    .glass-circle-2 {
        filter: blur(80px);
    }
}