:root {
    --primary-color: #d20000; /* Rambo红色 */
    --secondary-color: #6c6c6c;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --card-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --background-gradient-start: #f8f9fa;
    --background-gradient-end: #e9ecef;
    --primary-hover: #b00000;
    --success-color: #4caf50;
    --error-color: #f44336;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    margin: 0;
    padding: 20px;
}

/* 装饰网格 */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(128, 128, 128, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 128, 128, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    pointer-events: none;
}

/* 添加动态背景元素 */
.background-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(210, 0, 0, 0.05) 0%, transparent 20%),
                radial-gradient(circle at 90% 80%, rgba(210, 0, 0, 0.05) 0%, transparent 20%);
    animation: float 20s infinite linear;
    z-index: -1;
    pointer-events: none;
}

/* 登录容器 */
.login-container {
    position: relative;
    z-index: 1;
    background: var(--card-color);
    border-radius: 16px;
    box-shadow: 0 10px 40px var(--shadow-color);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

/* 登录头部 */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

/* Logo样式 - 基于图片设计 */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-wrapper {
    width: 180px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Rambo Logo 图片样式 */
.rambo-logo-image {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 进度指示器 */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
}

.progress-indicator::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 40px;
    right: 40px;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    text-align: center;
}

.step:not(:last-child) {
    margin-right: 60px;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.step.completed .step-number {
    background-color: var(--primary-color);
    color: white;
}

.step.completed .step-label {
    color: var(--primary-color);
}

.step.active .step-number {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.step.inactive .step-number {
    background-color: #e0e0e0;
    color: #999;
}

.step.inactive .step-label {
    color: #999;
}

.step-divider {
    flex: 1;
    height: 2px;
    background-color: #e0e0e0;
    position: absolute;
    left: 50%;
    right: 50%;
    top: 50%;
    transform: translateY(-50%);
}

/* 标题样式 */
h2 {
    color: var(--text-color);
    font-size: 24px;
    font-weight: 600;
    margin-top: 10px;
}

/* 消息提示样式 */
.messages {
    margin-bottom: 20px;
}

.alert {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.alert-error {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert i {
    margin-right: 10px;
    font-size: 16px;
}

/* 表单样式 */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(210, 0, 0, 0.1);
    background-color: #ffffff;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-light);
    font-size: 16px;
    transition: color 0.3s ease;
    z-index: 1;
}

.input-wrapper:focus-within i {
    color: var(--primary-color);
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--text-color);
    outline: none;
    transition: all 0.3s ease;
    position: relative;
}

.input-wrapper input::placeholder {
    color: #aaa;
    transition: color 0.3s ease;
}

.input-wrapper:focus-within input::placeholder {
    color: #ccc;
}

/* 登录按钮样式 */
.btn-login {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    padding: 14px 0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(210, 0, 0, 0.15);
}

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

.btn-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-login:hover::before {
    width: 300px;
    height: 300px;
}

.btn-login:disabled {
    background: linear-gradient(135deg, #ccc 0%, #999 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 重置链接样式 */
.reset-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-reset {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.btn-reset:hover {
    color: var(--primary-color);
    text-decoration: none;
    border-color: var(--primary-color);
}

/* 动画效果 */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(10px) translateX(-10px);
    }
    75% {
        transform: translateY(-10px) translateX(5px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
        align-items: center;
        min-height: 100vh;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
    }

    .login-container {
        margin: 0 auto;
        padding: 20px 35px 20px 35px;
        width: 100%;
        max-width: 100%;
        box-shadow: 0 8px 30px var(--shadow-color);
        box-sizing: border-box;
    }

    .logo-wrapper {
        width: 180px;
        height: 75px;
    }

    .rambo-logo-image {
        max-width: 200px;
    }

    h2 {
        font-size: 24px;
    }

    .step:not(:last-child) {
        margin-right: 40px;
    }

    .progress-indicator::before {
        left: 30px;
        right: 30px;
    }

    .form-group {
        margin-bottom: 22px;
    }

    .input-wrapper {
        border-radius: 8px;
        height: 54px;
    }

    .input-wrapper i {
        left: 18px;
        font-size: 18px;
    }

    .input-wrapper input {
        padding: 0 20px 0 50px !important;
        font-size: 16px !important;
        height: 54px !important;
        line-height: 54px !important;
    }

    .btn-login {
        padding: 0 !important;
        font-size: 17px !important;
        height: 54px !important;
        line-height: 54px !important;
    }

    .step-number {
        width: 34px;
        height: 34px;
        font-size: 15px;
        margin-bottom: 8px;
    }

    .step-label {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px !important;
        min-height: 100vh;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .login-container {
        padding: 20px 25px 20px 25px !important;
        border-radius: 14px;
        max-width: 100% !important;
        box-shadow: 0 6px 25px var(--shadow-color);
        box-sizing: border-box;
    }

    .login-header {
        margin-bottom: 20px;
    }

    .logo-wrapper {
        width: 160px;
        height: 65px;
    }

    .rambo-logo-image {
        max-width: 170px;
    }

    h2 {
        font-size: 22px;
        margin-top: 12px;
    }

    .progress-indicator {
        margin-bottom: 30px;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
        margin-bottom: 7px;
    }

    .step-label {
        font-size: 13px;
    }

    .input-wrapper {
        height: 50px;
    }

    .input-wrapper i {
        left: 16px;
        font-size: 17px;
    }

    .input-wrapper input {
        padding: 0 18px 0 48px !important;
        font-size: 16px !important;
        height: 50px !important;
        line-height: 50px !important;
    }

    .btn-login {
        padding: 0 !important;
        font-size: 17px !important;
        height: 50px !important;
        line-height: 50px !important;
    }

    .btn-reset {
        font-size: 13px;
        padding: 8px 16px;
    }

    .alert {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* 加载状态 */
.btn-login.loading {
    opacity: 0.8;
}

.btn-login.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}