/* ===== public/css/auth/register.css ===== */

.register-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 400px);
    padding: 40px 15px;
}

.register-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 560px;
    overflow: hidden;
}

/* Header */
.register-header {
    background: linear-gradient(135deg, #1B6079 0%, #0f3d4d 100%);
    padding: 30px 20px;
    text-align: center;
    color: #fff;
    position: relative;
}
.register-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, #8CC426, #4CAF50, #8CC426);
}
.register-header i {
    font-size: 32px;
    color: #8CC426;
    margin-bottom: 10px;
}
.register-header h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}
.register-header p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Role Tabs */
.role-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.role-tab {
    flex: 1;
    padding: 14px 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    border-bottom: 3px solid transparent;
    transition: all 0.25s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.role-tab i {
    font-size: 18px;
}
.role-tab:hover {
    background: #f1f5f9;
    color: #1B6079;
}
.role-tab.active {
    color: #1B6079;
    border-bottom-color: #1B6079;
    background: #fff;
}

/* Body */
.register-body { padding: 30px; }

.form-group { margin-bottom: 18px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}
.form-group label .req { color: #dc2626; }

.input-group {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 14px;
    transition: all 0.25s;
}
.input-group:focus-within {
    border-color: #1B6079;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(27, 96, 121, 0.1);
}
.input-group i {
    color: #94a3b8;
    font-size: 16px;
    margin-right: 10px;
}
.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    font-family: inherit;
}
.input-group input::placeholder { color: #94a3b8; }

.input-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

/* Error */
.error-text {
    color: #dc2626;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Password strength hint */
.pass-hint {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 5px;
    display: block;
}

/* Terms */
.terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.5;
}
.terms input[type="checkbox"] {
    margin-top: 3px;
    width: 16px; height: 16px;
    accent-color: #1B6079;
    cursor: pointer;
}
.terms a { color: #1B6079; font-weight: 500; }
.terms a:hover { text-decoration: underline; }

/* Submit Button */
.btn-register {
    width: 100%;
    background: #1B6079;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-register:hover {
    background: #0f3d4d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 96, 121, 0.3);
}

/* Footer */
.register-footer {
    text-align: center;
    padding: 0 30px 30px;
    font-size: 14px;
    color: #64748b;
}
.register-footer a {
    color: #1B6079;
    font-weight: 600;
}
.register-footer a:hover { text-decoration: underline; }

/* Alert */
.alert-danger {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 480px) {
    .register-body { padding: 20px; }
    .register-footer { padding: 0 20px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .role-tab { font-size: 11px; padding: 10px 4px; }
    .role-tab i { font-size: 15px; }
}

/* ═══ Textarea variant of input-group ═══ */
.input-group.textarea-group {
    align-items: flex-start;
    padding: 10px 14px;
    height: auto;
}

.input-group.textarea-group > i {
    margin-top: 4px;
    flex-shrink: 0;
}

.input-group.textarea-group > textarea {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 13.5px;
    color: #0f172a;
    resize: vertical;
    min-height: 70px;
    padding: 0;
    line-height: 1.5;
    box-sizing: border-box;
}

.input-group.textarea-group > textarea::placeholder {
    color: #94a3b8;
}