/* =====================================
   WaterFlow – Form Screens (Register / Edit / Confirm)
   Single Column | Professional Admin UI
   ===================================== */

/* ---------- Card wrapper ---------- */
.form-card,
.confirm-card {
    max-width: 720px;
    margin: 0 auto;
}

/* ---------- Section header ---------- */
.section-header {
    margin-bottom: 18px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.section-caption {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* ---------- Single column form ---------- */
.form-single {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}

/* ---------- Form group ---------- */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

/* ---------- Inputs ---------- */
.form-control {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-control:focus {
    border-color: #0f766e;
    outline: none;
    box-shadow: 0 0 0 2px rgba(15,118,110,0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* ---------- Error state (future ready) ---------- */
.form-control.is-error {
    border-color: #dc2626;
}

.error-text {
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
}

/* ---------- Confirm screen ---------- */
.confirm-list {
    margin-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.confirm-row span {
    color: #6b7280;
}

.confirm-row strong {
    color: #111827;
    font-weight: 600;
}

/* ---------- Actions ---------- */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

/* ---------- Buttons ---------- */
.btn-primary {
    background: #0f766e;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;   
    cursor: default; 
    text-decoration: none;
}

.btn-secondary {
    background: #f3f4f6;
    color: #111827;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    cursor: default; 
    text-decoration: none;
}

.btn-primary:hover {
    background: #0d5f58;
    cursor: default;
}

.btn-secondary:hover {
    background: #e5e7eb;
    text-decoration: none;
}

.action-row {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.action-link {
    text-decoration: none;
}

.required {
    color: rgba(252, 12, 12, 0.699);
}

.position-relative {
    position: relative;
}

.password-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 5;
    color: #555;
}

.form-control {
    padding-right: 40px;
}

.form-control.is-error {
    border-color: #dc3545;           
    box-shadow: none;
}

/* ---------- Mobile adjustments ---------- */
@media (max-width: 768px) {
    .form-card,
    .confirm-card {
        max-width: 100%;
    }

    .section-title {
        font-size: 16px;
    }

    .form-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}
