/* frontend/css/register.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

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

.header h1 {
    color: #333;
    margin-bottom: 10px;
}

.header p {
    color: #666;
    font-size: 14px;
}

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

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

.form-group input[type="email"],
.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
}

.validation-msg {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
}

button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.code-input-group {
    display: flex;
    gap: 10px;
}

.code-input-group input {
    flex: 1;
}

.btn-code {
    background-color: #28a745;
    color: white;
    width: auto;
    padding: 10px 20px;
    font-size: 14px;
    margin-left: 10px;
}

.btn-code:hover {
    background-color: #218838;
}

.btn-code:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    margin-bottom: 5px;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-secondary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.password-rules {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.password-rules p {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.password-rules ul {
    list-style: none;
    padding-left: 0;
}

.password-rules li {
    font-size: 12px;
    color: #dc3545;
    margin-bottom: 3px;
}

.password-rules li.valid {
    color: #28a745;
}

.error-box {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.login-link a {
    color: #007bff;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
}
