.register-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    padding: 20px;
    position: relative;
}

.register-box {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 40px 32px;
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
    max-height: 90vh;
    overflow-y: auto;
}

.register-box::-webkit-scrollbar {
    width: 6px;
}

.register-box::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.register-box::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.register-box::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

.register-logo {
    text-align: center;
    margin-bottom: 8px;
}

.register-logo-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.register-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.register-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 13px;
    font-weight: 400;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group label .required {
    color: var(--danger-color);
    margin-left: 2px;
}

.form-group input,
.form-group select {
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
    outline: none;
}

.form-group input::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
}

.form-group input:disabled {
    background: var(--bg-tertiary);
    cursor: not-allowed;
    opacity: 0.6;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.input-with-btn {
    display: flex;
    gap: 8px;
}

.input-with-btn input {
    flex: 1;
}

.btn-check {
    padding: 12px 20px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    min-width: 90px;
}

.btn-check:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-check:disabled {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    cursor: not-allowed;
    border-color: var(--border-color);
    opacity: 0.6;
}

.password-wrapper {
    position: relative;
    display: flex;
}

.password-wrapper input {
    flex: 1;
    padding-right: 42px;
}

.btn-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-tertiary);
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.btn-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.msg {
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.msg.success {
    color: var(--success-color);
}

.msg.success::before {
    content: '✓';
    font-size: 12px;
    font-weight: 700;
}

.msg.error {
    color: var(--danger-color);
}

.msg.error::before {
    content: '⚠';
    font-size: 12px;
}

.msg.info {
    color: var(--text-secondary);
}

.msg.info::before {
    content: 'ℹ';
    font-size: 12px;
}

.password-strength {
    margin-top: 8px;
    display: flex;
    gap: 4px;
}

.password-strength-bar {
    flex: 1;
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.password-strength-bar.active {
    background: var(--success-color);
}

.password-strength-bar.weak {
    background: var(--danger-color);
}

.password-strength-bar.medium {
    background: var(--warning-color);
}

.password-strength-text {
    font-size: 11px;
    margin-top: 6px;
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-submit {
    padding: 12px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 4px;
    position: relative;
}

.btn-submit:hover {
    background: var(--primary-hover);
}

.btn-submit:active {
    transform: translateY(1px);
}

.btn-submit:disabled {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    cursor: not-allowed;
    transform: none;
}

.btn-submit.loading {
    pointer-events: none;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.register-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.register-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.register-footer a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}
