:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
}

.custom-country-trigger {
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
}

.custom-country-dropdown {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.country-search {
    margin-bottom: 5px;
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
    padding: 0.375rem 0.75rem;
    width: 100%;
}

#country-options li {
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.2s;
}

#country-options li:hover {
    background-color: #f8f9fa;
}

/* 隐藏所有浏览器原生密码显示按钮 */
input::-ms-reveal,
input::-ms-clear {
    display: none;
}

input::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    position: absolute;
    right: 0;
    z-index: -1;
}
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.glass-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.system-header {
    background: linear-gradient(135deg, #3498db4a, #2980b95c);
    color: white;
    padding: 30px;
    text-align: center;
}

.system-logo {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.system-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.system-name {
    font-weight: 700;
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-container {
    padding: 30px;
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
}

.form-title {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
    font-size: 1.8rem;
}

.form-subtitle {
    color: #6c757d;
    font-size: 1rem;
}

.form-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

.input-group {
    position: relative;
}

.form-control {
    border-radius: 10px;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 10;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.btn-register {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 12px;
    font-weight: 600;
    border-radius: 10px;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    margin-top: 10px;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.login-link {
    text-align: center;
    margin-top: 20px;
    color: #6c757d;
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

.password-strength {
    height: 5px;
    background: #e9ecef;
    border-radius: 5px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-meter {
    height: 100%;
    width: 0;
    border-radius: 5px;
    transition: width 0.3s, background 0.3s;
}

.terms {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 15px;
    text-align: center;
}

.terms a {
    color: var(--primary-color);
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

.phone-group {
    display: flex;
    gap: 10px;
}

.country-code-select {
    width: 30%;
}

.phone-input {
    width: 70%;
}

.contact-form {
    display: block;
}

.error-message {
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-top: 5px;
}

.alert {
    border-radius: 10px;
    margin-bottom: 20px;
}

.contact-info {
    position: relative;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}

.contact-info::before {
    content: "※";
    position: absolute;
    left: 10px;
    top: 12px;
    color: var(--warning-color);
    font-weight: bold;
}

.contact-info p {
    margin: 0;
    padding-left: 20px;
    color: #6c757d;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .phone-group {
        flex-direction: column;
    }

    .country-code-select, .phone-input {
        width: 100%;
    }
}