/* ========================================
   拾光摄影 - 登录页专用样式
   独立页面，不使用 layout.html 布局
   ======================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

/* 背景装饰元素 */
.bg-decoration {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-decoration::before,
.bg-decoration::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: #fff;
}

.bg-decoration::before {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -100px;
}

.bg-decoration::after {
    width: 400px;
    height: 400px;
    bottom: -120px;
    left: -80px;
}

/* 登录容器 */
.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 登录卡片 */
.login-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.15);
    padding: 44px 40px 36px;
    width: 100%;
    animation: cardFadeIn 0.5s ease-out;
}

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

/* 卡片头部 */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.logo-icon i {
    font-size: 32px;
    color: #fff;
}

.login-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #303133;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.login-header .subtitle {
    font-size: 12px;
    color: #909399;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* 表单样式 */
.login-form .el-input__inner {
    height: 44px;
    line-height: 44px;
    font-size: 14px;
    border-radius: 8px;
    border-color: #dcdfe6;
    transition: all 0.3s ease;
}

.login-form .el-input__inner:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.12);
}

.login-form .el-input__prefix {
    left: 10px;
}

.login-form .el-input__prefix .el-input__icon {
    color: #c0c4cc;
    font-size: 17px;
}

/* 记住密码行 */
.remember-row {
    margin-bottom: 22px !important;
}

.remember-row .el-checkbox {
    color: #909399;
}

.remember-row .el-checkbox__input.is-checked + .el-checkbox__label {
    color: #667eea;
}

/* 登录按钮 */
.btn-login {
    width: 100%;
    height: 46px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 4px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.4);
    opacity: 1 !important;
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login.is-disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* 底部版权文字 */
.footer-text {
    margin-top: 28px;
    text-align: center;
}

.footer-text span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    letter-spacing: 1px;
}

.footer-text .icp {
    display: block;
    margin-top: 6px;
}

.footer-text .icp a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-text .icp a:hover {
    color: rgba(255, 255, 255, 0.85);
}

/* 表单项间距调整 */
.login-form > .el-form-item {
    margin-bottom: 18px;
}

/* 错误提示覆盖样式（Element UI） */
.el-message--error {
    min-width: auto;
}

/* 响应式适配 */
@media screen and (max-width: 480px) {
    .login-card {
        padding: 32px 24px 28px;
        border-radius: 12px;
    }

    .login-header h1 {
        font-size: 19px;
    }

    .logo-icon {
        width: 54px;
        height: 54px;
        border-radius: 14px;
    }

    .logo-icon i {
        font-size: 26px;
    }
}
