/* Register panel — builds on shared card, label, and input styles in index.css */

.register-box {
    max-width: 420px;
}

#registerForm {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#registerForm .register-label {
    margin-top: 16px;
    margin-bottom: 8px;
}

#registerForm .register-label:first-child {
    margin-top: 0;
}

.avatar-upload {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 2px dashed rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
}

.avatar-upload.has-image {
    border-style: solid;
    border-color: rgba(79,139,255,0.5);
}

.avatar-upload:hover {
    border-color: rgba(79,139,255,0.6);
    background: rgba(79,139,255,0.05);
}

.avatar-plus {
    color: rgba(255,255,255,0.2);
    font-size: 34px;
    font-weight: 300;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    user-select: none;
    transition: color 0.2s;
}

.avatar-upload:hover .avatar-plus {
    color: rgba(79,139,255,0.65);
}

#avatar-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    position: absolute;
    inset: 0;
    display: none;
    z-index: 2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.avatar-upload.has-image #avatar-preview {
    display: block;
}

.avatar-upload.has-image .avatar-plus {
    display: none;
}

.register-btn {
    width: 100%;
    padding: 13px;
    font-size: 12px;
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 8px;
    outline: none;
}

.register-btn {
    width: 100%;
    padding: 13px;
    font-size: 12px;
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 24px;
    background: rgba(65, 89, 143, 0.33);
    color: rgba(255,255,255,0.75);
    outline: none;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}
.register-btn:hover {
    background: rgba(80, 106, 165, 0.52);
    color: #fff;
    transform: translateY(-1px);
}
.register-btn:active {
    transform: scale(0.98);
}

.error-message {
    color: #ff6b6b;
    font-size: 13px;
    text-align: center;
    font-weight: 500;
}

.error-message:not(:empty) {
    margin-top: 20px;
    animation: errorIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.password-field-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.password-field-wrapper .login-input {
    padding-right: 48px;
}

.show-password-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.22);
    transition: color 0.2s;
    outline: none;
    z-index: 3;
}

.show-password-btn:hover {
    color: rgba(79,139,255,0.8);
}

/* Inline field validation hints */
.field-hint {
    font-size: 0.76rem;
    min-height: 16px;
    margin-top: 5px;
    display: block;
    transition: color 0.15s;
}
.field-hint.hint-ok    { color: #52a47c; }
.field-hint.hint-error { color: #c87070; }

/* Password strength meter — 4 segments */
.password-strength-segments {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}
.pss-seg {
    flex: 1;
    height: 4px;
    border-radius: 3px;
    background: rgba(255,255,255,0.07);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.password-strength-label {
    font-size: 0.73rem;
    margin-top: 5px;
    display: block;
    min-height: 14px;
    transition: color 0.2s;
}
.strength-weak   .password-strength-label { color: #c87070; }
.strength-fair   .password-strength-label { color: #c99240; }
.strength-good   .password-strength-label { color: #4f8bc2; }
.strength-strong .password-strength-label { color: #52a47c; }
