﻿/* =====================================================
   智慧生态厨房云平台 - 现代化登录页样式
   设计风格: 深色渐变背景 + 玻璃拟态登录卡片
   ===================================================== */

/* ---- 基础重置 ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    overflow: hidden;
}

/* ---- 全屏背景 ---- */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a2a6c 0%, #2d5a87 40%, #4a9db8 100%);
    position: relative;
}

/* 背景装饰圆 */
.login-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    top: -200px;
    left: -200px;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    bottom: -100px;
    right: -100px;
}

/* ---- 顶部标题栏 ---- */
.login-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    z-index: 10;
}

.login-header .logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-header .logo-wrap img {
    height: 44px;
    width: auto;
}

.login-header .logo-wrap .site-title {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ---- 登录卡片容器 ---- */
.login-card-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    padding: 20px;
    z-index: 5;
}

.login-card {
    display: flex;
    width: 860px;
    min-height: 480px;
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.35);
    overflow: hidden;
    animation: cardSlideUp 0.6s ease-out;
}

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

/* ---- 左侧品牌区域 ---- */
.login-card .brand-side {
    width: 380px;
    background: linear-gradient(160deg, #1e4d7b 0%, #2d6da3 50%, #3a8bc8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.brand-side::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    top: -80px;
    right: -80px;
}

.brand-side .brand-icon {
    width: 90px;
    height: 90px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.brand-side .brand-icon i {
    font-size: 40px;
    color: #fff;
}

.brand-side .brand-title {
    font-size: 26px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 3px;
    margin-bottom: 12px;
    text-align: center;
}

.brand-side .brand-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.8;
}

.brand-side .brand-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.brand-side .brand-features .feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
}

.brand-side .brand-features .feature-item i {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

/* ---- 右侧表单区域 ---- */
.login-card .form-side {
    flex: 1;
    padding: 48px 44px 36px;
    display: flex;
    flex-direction: column;
}

.form-side .form-header {
    margin-bottom: 32px;
}

.form-side .form-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a2a6c;
    margin-bottom: 6px;
}

.form-side .form-header p {
    font-size: 13px;
    color: #999;
}

/* ---- 输入框 ---- */
.input-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input-form .input-group {
    margin-bottom: 18px;
    position: relative;
}

.input-form .input-group label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    font-weight: 500;
}

.input-form .input-group .input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-form .input-group .input-wrap i {
    position: absolute;
    left: 14px;
    color: #a0aec0;
    font-size: 15px;
    z-index: 2;
}

.input-form .input-group .input-wrap input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 40px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    background: #f8fafc;
    transition: all 0.25s ease;
    outline: none;
}

.input-form .input-group .input-wrap input:focus {
    border-color: #3a8bc8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(58,139,200,0.12);
}

.input-form .input-group .input-wrap input::placeholder {
    color: #a0aec0;
}

/* 验证码行 */
.input-form .verify-row {
    display: flex;
    gap: 12px;
}

.input-form .verify-row .input-wrap {
    flex: 1;
}

.input-form .verify-row .verify-img {
    width: 110px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.input-form .verify-row .verify-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- 提示信息 ---- */
.input-form .login_tips {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    animation: shakeIn 0.3s ease;
}

.input-form .login_tips i {
    font-size: 14px;
}

.input-form .login_tips {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.input-form .login_tips-succeed {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.input-form .login_tips-succeed i {
    font-size: 14px;
}

@keyframes shakeIn {
    0% { opacity: 0; transform: translateY(-5px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ---- 登录按钮 ---- */
.input-form .btn {
    margin-top: 8px;
}

.input-form .btn button {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, #1e4d7b 0%, #2d6da3 50%, #3a8bc8 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.input-form .btn button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.input-form .btn button:hover::after {
    left: 100%;
}

.input-form .btn button:hover {
    box-shadow: 0 8px 25px rgba(30,77,123,0.35);
    transform: translateY(-1px);
}

.input-form .btn button[disabled] {
    background: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.input-form .btn button.active {
    background-image: url(../images/loading1.gif);
    background-repeat: no-repeat;
    background-position: center 10px;
}

/* ---- 辅助选项 ---- */
.input-form .form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    font-size: 13px;
}

.input-form .form-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.input-form .form-options label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2d6da3;
    cursor: pointer;
}

.input-form .form-options a {
    color: #2d6da3;
    text-decoration: none;
    transition: color 0.2s;
}

.input-form .form-options a:hover {
    color: #1e4d7b;
}

/* ---- 底部版权 ---- */
.login-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    z-index: 10;
}

/* ---- 响应式适配 ---- */
@media (max-width: 920px) {
    .login-card {
        width: 100%;
        max-width: 420px;
        flex-direction: column;
    }

    .login-card .brand-side {
        width: 100%;
        min-height: 160px;
        padding: 28px;
    }

    .brand-side .brand-features {
        display: none;
    }

    .login-card .form-side {
        padding: 32px 28px 28px;
    }
}

@media (max-width: 480px) {
    .login-header {
        padding: 14px 20px;
    }

    .login-header .logo-wrap .site-title {
        font-size: 16px;
    }

    .login-card {
        border-radius: 12px;
        min-height: auto;
    }

    .login-card .brand-side {
        min-height: 120px;
    }

    .brand-side .brand-icon {
        width: 60px;
        height: 60px;
    }

    .brand-side .brand-icon i {
        font-size: 28px;
    }

    .brand-side .brand-title {
        font-size: 20px;
    }

    .login-card .form-side {
        padding: 24px 20px 20px;
    }

    .form-side .form-header h2 {
        font-size: 20px;
    }

    .input-form .input-group .input-wrap input {
        height: 42px;
    }
}
