﻿
.register-container {
    width: 100%;
    max-width: 500px;
    margin: 10px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 5px;
    position: relative;
    overflow: hidden;
}

    .register-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #0FA2F9, #347AFF, #FF9C29);
    }

.register-title {
    text-align: center;
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 300;
    position: relative;
}

    .register-title::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background: linear-gradient(90deg, #0FA2F9, #347AFF);
        border-radius: 2px;
    }

.register-form {
    width: 100%;
}

.form-group {
    margin-bottom: 15px;
    margin-left:25px;
    margin-right:25px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

    .form-label::before {
        content: '';
        display: inline-block;
        width: 4px;
        height: 16px;
        background: #0FA2F9;
        margin-right: 8px;
        border-radius: 2px;
    }

.required-star {
    color: #ff6b6b;
    margin-left: 4px;
    font-weight: bold;
}

.input-with-icon {
    position: relative;
}

.form-input {
    width: 100%;
    height: 40px;
    padding: 0 15px 0 45px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fafafa;
}

    .form-input:focus {
        border-color: #0FA2F9;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(15, 162, 249, 0.1);
        outline: none;
    }

    .form-input.error {
        border-color: #ff6b6b;
        box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
    }

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
    z-index: 1;
}

.error-message {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 8px;
    display: none;
    padding-left: 10px;
    position: relative;
}

    .error-message::before {
        content: '!';
        display: inline-block;
        width: 16px;
        height: 16px;
        background: #ff6b6b;
        color: white;
        border-radius: 50%;
        text-align: center;
        line-height: 16px;
        font-size: 12px;
        margin-right: 6px;
    }

/* 修改验证码输入组样式 */
.sms-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.sms-input-container {
    flex: 1;
    position: relative;
}

.sms-input {
    width: 100%;
    height: 40px;
    padding: 0 15px 0 45px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fafafa;
}

    .sms-input:focus {
        border-color: #0FA2F9;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(15, 162, 249, 0.1);
        outline: none;
    }

.sms-btn {
    width: 140px;
    height: 40px;
    background: linear-gradient(135deg, #0FA2F9, #347AFF);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(15, 162, 249, 0.3);
    white-space: nowrap;
}

    .sms-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(15, 162, 249, 0.4);
    }

    .sms-btn:active {
        transform: translateY(0);
    }

    .sms-btn:disabled {
        background: #ccc;
        box-shadow: none;
        cursor: not-allowed;
        transform: none;
    }

.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input {
    position: absolute;
    left: -9999px;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f8f8f8;
    border: 2px dashed #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    color: #666;
    height: 50px;
}

    .file-label:hover {
        background: #f0f0f0;
        border-color: #0FA2F9;
        color: #0FA2F9;
    }

.file-icon {
    margin-right: 10px;
    font-size: 20px;
}

.file-name {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    padding-left: 10px;
    display: flex;
    align-items: center;
}

    .file-name::before {
        content: '📎';
        margin-right: 5px;
    }

.agreement-group {
    display: flex;
    align-items: flex-start;
    margin: 20px 0;
    padding: 1px;
    background: #f8faff;
    border-radius: 8px;
    border: 1px solid #e6f0ff;
    margin-left: 25px;
    margin-right: 25px;
}

.agreement-checkbox {
    margin-right: 12px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0FA2F9;
}

.agreement-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    cursor: pointer;
}

.agreement-link {
    color: #0FA2F9;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}

    .agreement-link:hover {
        color: #347AFF;
        text-decoration: underline;
    }

.register-btn {
    width: 94%;
    height: 50px;
    background: linear-gradient(135deg, #0FA2F9, #347AFF);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(15, 162, 249, 0.4);
    letter-spacing: 1px;
    margin-left: 25px;
    margin-right: 25px;
}

    .register-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(15, 162, 249, 0.5);
    }

    .register-btn:active {
        transform: translateY(0);
    }

    .register-btn:disabled {
        background: #ccc;
        box-shadow: none;
        cursor: not-allowed;
        transform: none;
    }

.form-tips {
    font-size: 13px;
    color: #999;
    margin-top: 6px;
    padding-left: 10px;
}

/* 新增链接区域样式 */
.register-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    margin-left:25px;
    margin-right:25px;
}

.login-link {
    color: #0FA2F9;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

    .login-link:hover {
        color: #347AFF;
        text-decoration: underline;
    }

.home-link {
    color: #666;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

    .home-link:hover {
        color: #0FA2F9;
    }

.link-icon {
    margin-right: 6px;
    font-size: 16px;
}

/* 移动端适配 */
@media only screen and (max-width: 768px) {
    .register-container {
        margin: 20px auto;
        padding: 25px 20px;
        border-radius: 10px;
    }

    .register-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .sms-group {
        flex-direction: column;
    }

    .sms-btn {
        width: 100%;
        margin-top: 5px;
    }

    .agreement-group {
        padding: 10px;
        margin: 20px 0;
    }

    .form-input, .sms-input {
        height: 46px;
        font-size: 15px;
    }

    .register-btn {
        height: 52px;
        font-size: 16px;
    }

    .register-links {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .login-link, .home-link {
        justify-content: center;
    }
}
/* 图形验证码样式 */
.captcha-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-input-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.captcha-input {
    width: 100%;
    height: 40px;
    padding: 0 10px 0 35px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

    .captcha-input:focus {
        border-color: #007bff;
        outline: none;
        box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
    }

.captcha-image-container {
    flex-shrink: 0;
    width: 120px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f8f9fa;
    cursor: pointer;
}

.captcha-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

    .captcha-image:hover {
        opacity: 0.9;
    }

/* 响应式调整 */
@media (max-width: 480px) {
    .captcha-group {
        flex-direction: column;
        align-items: stretch;
    }

    .captcha-image-container {
        width: 100%;
        height: 50px;
    }
}
