﻿:root {
    --primary: #2b6ef1;
    --error: #ef4444;
    --success: #22c55e;
    --background: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background: var(--background);
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.register-card {
    background: white;
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
}

.form-title {
    color: #1e293b;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.form-grid {
    display: grid;
    gap: 1.5rem;
}

.input-group {
    position: relative;
}

.input-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
}

    .input-label::after {
        content: '*';
        color: var(--error);
        margin-left: 2px;
    }

.input-field {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

    .input-field:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(43, 110, 241, 0.1);
    }
.input-field1 {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

    .input-field1:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(43, 110, 241, 0.1);
    }
.error-message {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

/* 验证状态样式 */
.valid .input-field {
    border-color: var(--success);
}

.invalid .input-field {
    border-color: var(--error);
}

.invalid .error-message {
    display: block;
}

/* 短信验证码区域 */
.sms-group {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
}

.sms-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

    .sms-btn:disabled {
        background: #94a3b8;
        cursor: not-allowed;
    }

.sms-btn1 {
    background: #94a3b8;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: not-allowed;
    transition: opacity 0.2s;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: opacity 0.2s;
}



    .submit-btn:hover {
        opacity: 0.95;
    }


.preview-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 999;
    touch-action: none;
    display: flex;
    align-items: center; /* 垂直居中 */
}

.register-sms {
    background: white;
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    padding: 2.5rem;
    display:flex;
    align-items:center;
    align-content:center;

}
.register-sms div{
   padding-left:5px;
}