/* src/main/resources/static/css/register.css */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
}

.register-card {
    background: #ffffff;
    width: 100%;
    max-width: 450px;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.register-card h2 {
    color: #4a5568;
    margin-bottom: 25px;
    font-weight: 600;
}

/* ── Step indicators ─────────────────────────────────── */

.step-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.step-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: #4a5568;
    color: #fff;
}

.step-line {
    width: 50px;
    height: 3px;
    background: #e0e0e0;
    margin: 0 8px;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.step-line.done {
    background: #4a5568;
}

/* ── Form inputs ─────────────────────────────────────── */

.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: #4a5568;
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.15);
    outline: none;
}

.input-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    transition: all 0.3s ease;
}

.input-group textarea:focus {
    border-color: #4a5568;
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.15);
    outline: none;
}

/* ── Buttons ─────────────────────────────────────────── */

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #4a5568;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, opacity 0.2s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #3d4852;
}

.submit-btn:disabled {
    background: #b0b8c1;
    cursor: not-allowed;
}

.link-btn {
    background: none;
    border: none;
    color: #4a5568;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
}

.link-btn:hover {
    text-decoration: underline;
}

.link-btn:disabled {
    color: #b0b8c1;
    cursor: not-allowed;
    text-decoration: none;
}

/* ── Verification code boxes ─────────────────────────── */

.verify-hint {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.verify-hint strong {
    color: #4a5568;
}

.code-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.code-box {
    width: 46px;
    height: 52px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.code-box:focus {
    border-color: #4a5568;
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.2);
}

/* ── Timer row ────────────────────────────────────────── */

.timer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #888;
    min-height: 28px;
}

/* ── Messages ────────────────────────────────────────── */

#message1,
#message2 {
    margin-top: 15px;
    font-size: 14px;
    min-height: 20px;
}

/* ── Extra links ─────────────────────────────────────── */

.extra-links {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.extra-links a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
}

.extra-links a:hover {
    text-decoration: underline;
}

.optional-tag {
    font-size: 12px;
    color: #999;
    font-weight: 400;
    margin-left: 4px;
}

/* ── Moderation field errors ────────────────────────── */

.input-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.field-error {
    display: none;
    color: #e74c3c;
    font-size: 13px;
    margin-top: 4px;
    line-height: 1.4;
}
