/* 商家端登录页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff7f24 0%, #ff5500 100%);
    border-radius: 16px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #999;
}

.login-form {
    width: 100%;
}

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

.form-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    height: 48px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 15px;
    color: #333;
    transition: border-color 0.3s;
    background: #fafafa;
}

.form-input:focus {
    outline: none;
    border-color: #ff7f24;
    background: #fff;
}

.form-input::placeholder {
    color: #ccc;
}

.login-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #ff7f24 0%, #ff5500 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.login-btn:hover {
    opacity: 0.9;
}

.login-btn:active {
    opacity: 0.8;
}

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

.login-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 12px;
    color: #999;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff7f24;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    color: #ff4d4f;
    font-size: 12px;
    margin-top: 8px;
    display: none;
}

.form-group.error .form-input {
    border-color: #ff4d4f;
}

.form-group.error .error-message {
    display: block;
}