/* ============================================
   Register Page — register.css
   ============================================ */

.register-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    padding: 48px 24px;
    margin: 0 auto;
    position: relative;
}

.form-section {
    margin-bottom: 24px;
}

/* Override form-group inputs */
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    font-size: 0.875rem;
    border: 1px solid hsl(var(--input));
    border-radius: var(--radius);
    outline: none;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="text"]:focus {
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.form-group input[type="email"]::placeholder,
.form-group input[type="password"]::placeholder,
.form-group input[type="text"]::placeholder {
    color: hsl(var(--muted-foreground));
}

/* Input + Button 가로 배치 */
.input-with-btn {
    display: flex;
    gap: 8px;
    align-items: center;
}

.input-with-btn input {
    flex: 1;
    min-width: 0;
}

.input-with-btn .btn {
    white-space: nowrap;
    flex-shrink: 0;
    height: 40px;
    padding: 0 14px;
    font-size: 0.813rem;
}

/* 인증 후 이메일 입력 잠금 스타일 */
input[readonly] {
    background: hsl(var(--muted)) !important;
    color: hsl(var(--muted-foreground)) !important;
    cursor: not-allowed;
    border-color: hsl(var(--border)) !important;
}

input[readonly]:focus {
    box-shadow: none !important;
    border-color: hsl(var(--border)) !important;
}

/* 인증 완료 배지 */
#verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: hsl(142 76% 90%);
    color: hsl(142 76% 36%);
    margin-bottom: 16px;
}

#verified-badge::before {
    content: '\2713';
    font-weight: 700;
}

/* 타이머 */
.timer {
    font-size: 0.813rem;
    color: hsl(var(--destructive));
    font-weight: 500;
    margin-left: 8px;
}

/* 구분선 */
.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 12px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: hsl(var(--border));
}

.divider span {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    white-space: nowrap;
}

/* Google 로그인 버튼 */
.google-login-btn {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    color: hsl(var(--foreground));
    background: hsl(var(--background));
    border: 1px solid hsl(var(--input));
    border-radius: var(--radius);
    cursor: not-allowed;
    opacity: 0.6;
    transition: background 0.2s, border-color 0.2s;
}

.google-login-btn svg {
    flex-shrink: 0;
}

/* Login link */
.login-link {
    text-align: center;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.login-link a {
    color: hsl(var(--primary));
    text-decoration: none;
    font-weight: 500;
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .register-container {
        padding: 24px 16px;
    }

    .input-with-btn {
        flex-direction: column;
    }

    .input-with-btn .btn {
        width: 100%;
    }
}
