/**
 * 登录注册页面样式
 */

/* 登录部分 */
.login-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 130px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-wrapper {
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    overflow: hidden;
    background: white;
}

.login-card {
    padding: 60px 50px;
    background: white;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 32px;
    color: #2d3748;
    margin-bottom: 30px;
    font-weight: 600;
}

.login-header p {
    color: #718096;
    font-size: 16px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 18px;
    z-index: 1;
}

.login-input-group input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: #f7fafc;
}

.login-input-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.login-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.login-checkbox input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.login-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.login-link:hover {
    color: #5568d3;
    text-decoration: underline;
}

.login-submit {
    margin-top: 10px;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.login-submit:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    color: #718096;
    font-size: 14px;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.login-footer p {
    color: #718096;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* 信息面板 */
.auth-info-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-info-panel h3 {
    font-size: 28px;
    margin-bottom: 40px;
    font-weight: 600;
}

.auth-info-panel .subtitle {
    font-size: 16px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.auth-feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.auth-feature-item span {
    font-size: 15px;
}

.auth-info-footer {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-info-footer p {
    line-height: 1.6;
    opacity: 0.9;
}

/* 注册页面 */
.register-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 130px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.register-wrapper {
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    overflow: hidden;
    background: white;
}

.register-card {
    padding: 60px 50px;
    background: white;
}

.register-header {
    text-align: center;
    margin-bottom: 40px;
}

.register-header h1 {
    font-size: 32px;
    color: #2d3748;
    margin-bottom: 30px;
    font-weight: 600;
}

.register-header p {
    color: #718096;
    font-size: 16px;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.register-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.register-input-group {
    position: relative;
}

.register-input-group input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: #f7fafc;
}

.register-input-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

.register-verify {
    display: flex;
    gap: 10px;
}

.register-verify .register-input-group {
    flex: 1;
}

.verify-code-btn {
    padding: 14px 20px;
    background: #e2e8f0;
    border: none;
    border-radius: 8px;
    color: #4a5568;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.verify-code-btn:hover {
    background: #cbd5e0;
}

.verify-code-btn:disabled {
    background: #f7fafc;
    color: #a0aec0;
    cursor: not-allowed;
}

.register-agree {
    margin-top: 10px;
}

.register-agree label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.register-agree input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.register-agree a {
    color: #667eea;
    text-decoration: none;
    margin-left: 5px;
}

.register-agree a:hover {
    text-decoration: underline;
}

.register-submit {
    margin-top: 10px;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.register-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.register-submit:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

.register-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.register-footer p {
    color: #718096;
}

.register-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.register-footer a:hover {
    text-decoration: underline;
}

/* 消息提示 */
.auth-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

.auth-message.success {
    background: #48bb78;
    color: white;
}

.auth-message.error {
    background: #f56565;
    color: white;
}

.auth-message i {
    font-size: 20px;
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -20px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-wrapper,
    .register-wrapper {
        grid-template-columns: 1fr;
    }

    .auth-info-panel {
        display: none;
    }

    .login-card,
    .register-card {
        padding: 40px 30px;
    }

    .register-row {
        grid-template-columns: 1fr;
    }
}
